Rspec Test render(:nothing => true)

written by doug on March 31st, 2008 @ 05:15 PM

I was trying to test one of my controllers was successfully hitting the render(:nothing => true) block. I could not find anything specifically in the API which handled this senario, so I ended up using have_text with a space as an argument.


@response.should have_text(" ")

Comments are closed

Options:

Size

Colors