Hi all,
I'm having trouble with rspec 1.1.4 and rjs
In the controller:
render :update do |page|
page << 'added text'
end
render :update do |page|
page.replace_html :divid :partial => 'apartial'
end
spec:
response.should have_rjs #this should be successful for any rjs
request; but fails
response.should have_rjs(:replace_html) #no luck
I have tried mocking the page object, but that also fails.
e.g
@page = mock('page)
@page.should_receive(:replace_html)
What's the best practice to validate rjs responses?
Thanks in advance
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users