[rspec-users] Test Rendering nothing in Rails

Shane Mingins smingins at elctech.com
Wed Aug 1 18:47:06 EDT 2007


Hi

In a controller I have method that is accessed via an AJAX call and  
will conditionally do:

render :nothing => true

to test the condition hitting this line I was hoping to do something  
like:

response.should render_template(:nothing)

How should I test this behaviour?

Cheers
Shane



More information about the rspec-users mailing list