0
我有我的Rails应用程序黄瓜步:如何获得在黄瓜步骤中从机架返回的响应?
Then /^I should be redirected to the sign in page$/ do
assert_equal 302, @response.status
end
但是@response
对象是我Controller
返回的一个,它的机架中间件状态设置为我所期望的那样。我如何获得从最外层中间件返回的响应,而不是从控制器返回的响应?