From dbf8c1d921ce227d8fde88b62113a17fc8fe778d Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 11 Jan 2023 13:30:25 +0000 Subject: Fix RuboCop offense Performance/RedundantEqualityComparisonBlock (#38146). git-svn-id: https://svn.redmine.org/redmine/trunk@22031 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/api_test/issues_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/integration/api_test/issues_test.rb') diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb index 425343c23..c5f0d3496 100644 --- a/test/integration/api_test/issues_test.rb +++ b/test/integration/api_test/issues_test.rb @@ -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 -- cgit v1.2.3