mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-07 01:38:50 +01:00
fix failing tests
This commit is contained in:
parent
fd3f69d927
commit
6b36d6eb8f
8 changed files with 17 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue