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.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users