search for: should_have_rj

Displaying 3 results from an estimated 3 matches for "should_have_rj".

Did you mean: should_have_rjs
2007 Jun 15
2
Is it still possible to use should_have_rjs
...pe effect /Users/ashleymoran/Documents/Development/YourMoney/trunk/src/spec/ views/admin/add_dealer_rjs_view_spec.rb:33 31 32 it "should have visual effect" do 33 response.should have_rjs(:effect, :blind_down, "add_dealer") 34 end 35 I''m trying to revert these to should_have_rjs but I''ve looked through the RSpec source and it seems should_have_rjs was silently removed between 0.8 and 0.9. At least I can''t find any reference to it in the 0.9.4 source or the 1.0.5 source. Am I missing something? I really need should_have_rjs- those 53 failures r...
2007 Feb 13
1
RJS specs
...partial and test like this: context "A rendered gap/product_info" do specify "should have RJS to update the product_info div" do assigns[:product_partial] = "product_info_rti" render ''gap/product_info'' response.should_have_rjs :replace_html, ''product_info'' end %w[ rti finance ].each do |product_type| specify "should have a product_info_#{product_type} div when the " do assigns[:product_partial] = "product_info_#{product_type}" render &...
2007 Jan 25
0
Testing RJS select method
Hi How can I test this kind of RJS code? page.select ''#id .class''.each do |element| element.removeClassName(''whatever'') end I know that should_have_rjs admits a block, but i don''t know exactly which is its purpose. And I can test that the "select" part is beign called, but I don''t know hot to test the "removeClassName" part. Thanks in advance.