What is the best way to spec a controller method that involves an rjs
redirect? Something like this
response.should =~ /window.location.href = ‘(whatever your expected
I didn’t confirm that regex, obviously. But the concept is pretty
supposed to be generated, then test for its presence in the response.
If it’s there, your controller logic worked.