diff options
author | Go MAEDA <maeda@farend.jp> | 2024-05-18 05:56:55 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-05-18 05:56:55 +0000 |
commit | a9518e28b86a330cbbc2cd2c9170e1cd38c458e2 (patch) | |
tree | 0a89a098bd85c03c1eeadfd29beb72683afa30a1 /test/functional/enumerations_controller_test.rb | |
parent | 58e9cd420adad1802d42828c8efedca0e6fed2d1 (diff) | |
download | redmine-a9518e28b86a330cbbc2cd2c9170e1cd38c458e2.tar.gz redmine-a9518e28b86a330cbbc2cd2c9170e1cd38c458e2.zip |
Fix RuboCop offense Rails/HttpStatus (#39889).
git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/enumerations_controller_test.rb')
-rw-r--r-- | test/functional/enumerations_controller_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/enumerations_controller_test.rb b/test/functional/enumerations_controller_test.rb index 06b56d024..a87d72d9f 100644 --- a/test/functional/enumerations_controller_test.rb +++ b/test/functional/enumerations_controller_test.rb @@ -35,7 +35,7 @@ class EnumerationsControllerTest < Redmine::ControllerTest def test_index_should_require_admin @request.session[:user_id] = nil get :index - assert_response 302 + assert_response :found end def test_new @@ -48,7 +48,7 @@ class EnumerationsControllerTest < Redmine::ControllerTest def test_new_with_invalid_type_should_respond_with_404 get(:new, :params => {:type => 'UnknownType'}) - assert_response 404 + assert_response :not_found end def test_create @@ -128,7 +128,7 @@ class EnumerationsControllerTest < Redmine::ControllerTest def test_edit_invalid_should_respond_with_404 get(:edit, :params => {:id => 999}) - assert_response 404 + assert_response :not_found end def test_update @@ -177,7 +177,7 @@ class EnumerationsControllerTest < Redmine::ControllerTest } } ) - assert_response 302 + assert_response :found assert_equal 1, Enumeration.find(2).position end @@ -194,7 +194,7 @@ class EnumerationsControllerTest < Redmine::ControllerTest } } ) - assert_response 302 + assert_response :found assert_equal "sample", enumeration.reload.custom_field_values.last.value end |