fix failing tests

This commit is contained in:
Reinier Balt 2010-11-09 10:47:09 +01:00
parent fd3f69d927
commit 6b36d6eb8f
8 changed files with 17 additions and 11 deletions

View file

@ -66,14 +66,14 @@ class LoginControllerTest < ActionController::TestCase
def test_login_bad_password
post :login, {:user_login => 'jane', :user_password => 'wrong', :user_noexpiry => 'on'}
assert(!@response.has_session_object?(:user))
assert_equal "Login unsuccessful", flash[:warning]
assert_equal "Login unsuccessful.", flash[:warning]
assert_response :success
end
def test_login_bad_login
post :login, {:user_login => 'blah', :user_password => 'sesame', :user_noexpiry => 'on'}
assert(!@response.has_session_object?(:user))
assert_equal "Login unsuccessful", flash[:warning]
assert_equal "Login unsuccessful.", flash[:warning]
assert_response :success
end