Displaying 1 result from an estimated 1 matches for "missedsomething".
2007 Jan 21
0
Functional Test Fails with before filter in application.rb
...redirected_to''
test/functional/user_controller_test.rb:24:in `test_index_with_user''
The controller I am testing is user_controller.rb
THe check_auth functions are in the application.rb
Would this break it?
Is there some way around this or have i just been staring too long and
missedsomething?
Thanks.
THE TEST:
in user_contorller_test.rb
def test_index_without_user
get :index
assert_response :redirect
assert_redirected_to :action => "login"
assert_equal "Please login", flash[:notice]
end
in application.rb
before_filter :check_authenticati...