Displaying 1 result from an estimated 1 matches for "test_new_using_get".
2006 Aug 03
2
Failing test with assert_redirected_to
...oller method -
def new
if request.post?
#Not important here.
else
flash[:notice] = ''Please join a tree from this page.''
redirect_to :controller => ''trees'', :action => ''list''
end
end
And the failing test and result -
def test_new_using_get
get ''new''
assert_response :redirect
assert_redirected_to :controller => ''trees'', :action => ''list''
end
Test::Unit::AssertionFailedError: response is not a redirection to all
of the options supplied (redirection is <{:action=>...