1
有沒有一種方法可以測試我們最終在rspec的預期路徑?Rspec確保我們結束了正確的路徑
喜歡的東西:
it "should be the forgot password path" do
response.should redirect_to(new_user_password_path)
end
這給了我一個錯誤:
Failure/Error: response.should redirect_to(new_user_password_path)
ArgumentError:
@request must be an ActionDispatch::Request
無賴。你的意思是「很傷心」? – 2012-03-21 16:25:42
yep ahaha,typo = D – Castilho 2012-03-22 10:45:49