mirror of
https://github.com/redmine/redmine.git
synced 2026-06-25 09:01:23 +02:00
Fix RuboCop offense Rails/HttpStatus (#39889).
git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -230,7 +230,7 @@ class AccountControllerTest < Redmine::ControllerTest
|
||||
:password => 'jsmith'
|
||||
}
|
||||
)
|
||||
assert_response 500
|
||||
assert_response :internal_server_error
|
||||
assert_select_error /Something wrong/
|
||||
end
|
||||
|
||||
@@ -243,7 +243,7 @@ class AccountControllerTest < Redmine::ControllerTest
|
||||
:password => 'jsmith'
|
||||
}
|
||||
)
|
||||
assert_response 302
|
||||
assert_response :found
|
||||
end
|
||||
|
||||
def test_login_should_strip_whitespaces_from_user_name
|
||||
@@ -254,7 +254,7 @@ class AccountControllerTest < Redmine::ControllerTest
|
||||
:password => 'jsmith'
|
||||
}
|
||||
)
|
||||
assert_response 302
|
||||
assert_response :found
|
||||
assert_equal 2, @request.session[:user_id]
|
||||
end
|
||||
|
||||
@@ -283,7 +283,7 @@ class AccountControllerTest < Redmine::ControllerTest
|
||||
|
||||
@request.session[:user_id] = 2
|
||||
post :logout
|
||||
assert_response 302
|
||||
assert_response :found
|
||||
end
|
||||
|
||||
def test_get_register_with_registration_on
|
||||
|
||||
Reference in New Issue
Block a user