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:
Go MAEDA
2024-05-18 05:56:55 +00:00
parent 58e9cd420a
commit a9518e28b8
83 changed files with 376 additions and 398 deletions

View File

@@ -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