mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 23:06:05 +01:00
Fix RuboCop offense Performance/RedundantEqualityComparisonBlock (#38146).
git-svn-id: https://svn.redmine.org/redmine/trunk@22031 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -231,7 +231,7 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
|
||||
json = ActiveSupport::JSON.decode(response.body)
|
||||
status_ids_used = json['issues'].collect {|j| j['status']['id']}
|
||||
assert_equal 3, status_ids_used.length
|
||||
assert status_ids_used.all? {|id| id == 5}
|
||||
assert status_ids_used.all?(5)
|
||||
end
|
||||
|
||||
test "GET /issues/:id.xml with journals" do
|
||||
|
||||
Reference in New Issue
Block a user