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

@@ -87,7 +87,7 @@ class IssuesTest < Redmine::IntegrationTest
}
)
end
assert_response 302
assert_response :found
end
def test_create_issue_by_anonymous_with_custom_permission_should_succeed
@@ -104,7 +104,7 @@ class IssuesTest < Redmine::IntegrationTest
}
}
)
assert_response 302
assert_response :found
end
assert_equal User.anonymous, issue.author
end
@@ -341,7 +341,7 @@ class IssuesTest < Redmine::IntegrationTest
}
}
)
assert_response 302
assert_response :found
end
# Issue view
@@ -381,11 +381,11 @@ class IssuesTest < Redmine::IntegrationTest
subject = 'Updated by an invalid http verb'
get '/issues/update/1', :params => {:issue => {:subject => subject}}
assert_response 404
assert_response :not_found
assert_not_equal subject, Issue.find(1).subject
post '/issues/1', :params => {:issue => {:subject => subject}}
assert_response 404
assert_response :not_found
assert_not_equal subject, Issue.find(1).subject
end
@@ -394,7 +394,7 @@ class IssuesTest < Redmine::IntegrationTest
assert_no_difference 'Watcher.count' do
get '/watchers/watch?object_type=issue&object_id=1'
assert_response 404
assert_response :not_found
end
end
@@ -406,6 +406,6 @@ class IssuesTest < Redmine::IntegrationTest
'v' => {'cf_9' => ['2021-05-25']}
}
assert_response 404
assert_response :not_found
end
end