Dav Yaginuma's blog
Interesting Things
- Nesting a javascript generator within a javascript generator does not work:
<code>
new.rhtml:
link_to_function "myFunction" do |page|
page.insert_html :bottom, :partial => 'new_stuff'
end
_new_stuff.rhtml:
link_to_function "remove" do |page|
page.replace_html 'some_id', ""
end
</code>
The quotes in the nested JS are not escaped properly.
- The plugin team introduced new email validation for the User plugin. They covered this with functional/unit tests within the plugin but projects using the plugin will need to update their own Selenium tests.
Total Stand-up Meeting Time: 10:00 minutes
Standup 04/16/2007
Help
- Problems with initial start up of CrusieControl daemon script. J of cc.rb can take a look.
- Running Selenium on IE7 remotely
Interesting Things
after_filteris called after the template is rendered, thus you cannot set instance variables in it and expect them to be available in the template. Theafter_filtermethod is good for post-render content manipulation or analysis such as gzipping, translating to pig latin or determining content-length. Perhaps it would be useful to add abefore_renderhook?- Remember integration tests are for full stack http testing (routes, REST, etc). Functional tests do not test full stack. Integration tests require some special handling.
- After a reload on an association proxy object, the reference becomes a true Array (they always respond true to
is_a?(Array). This means that none of the association proxy methods are available!
<code>
class Foo < ActiveRecord::Base
has_many :bar
end
foo = Foo.new
foo.bars.reload.build
NoMethodError: undefined method `build' for []:Array
</code>
Total Stand-up Meeting Time: 14:00 minutes
