[rspec-users] Testing render :update
Marcelo de Moraes Serpa
celoserpa at gmail.com
Mon Jun 14 19:40:25 EDT 2010
Hey guys.
I would like to test the following behavior:
render :update do |page|
page.replace_html 'errors', :partial => 'signup_errors', :locals
=> { :errors => 'errors'}
end
}
I'm doing:
controller.should_receive(:render).with(:update)
But I am not sure on how to test the block. Maybe checking out what is the
class of the page var and setting up an expection on it?
Any suggestions appreciated,
Marcelo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100614/70f567c9/attachment-0001.html>
More information about the rspec-users
mailing list