I have a Cucumber step for my Rails application:
Then /^I should be redirected to the sign in page$/ do
assert_equal 302, @response.status
end
But that @response
object is the one returned by my Controller
, and it's the Rack middleware that sets the status to what I expect it to be. How can I get at the response as returned from the outer-most middleware instead of the one returned from the controller?