Rspec Test render(:nothing = true)

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(" ")

March 31, 2008 • Tags:  • Posted in: Uncategorized • No Comments