Displaying 1 result from an estimated 1 matches for "test_friendship_request_accept".
2006 Dec 11
1
assert_redirected_to error
I''m new to TDD in rails, I''m getting this weird error with
assert_redirected_to.
Here''s my test:
def test_friendship_request_accept
@request.session[:user] = users(:nathan).id
get :accept, { :id => 1 }
assert_redirected_to :controller => "/users/profile", :action =>
"index", :id => users(:nathan).id
end
When I run this I get:
RuntimeError: The number of parameters does not match th...