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