From: Go MAEDA Date: Wed, 7 Jun 2023 12:37:09 +0000 (+0000) Subject: Fix RuboCop offense Style/RedundantFilterChain (#36919). X-Git-Tag: 5.1.0~119 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd2a9027f1189b6962ac099a1e6d3a61c2570355;p=redmine.git Fix RuboCop offense Style/RedundantFilterChain (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22251 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index 188230022..aa2ff8270 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -2235,7 +2235,7 @@ class IssueTest < ActiveSupport::TestCase assert parent.closable? assert_nil parent.transition_warning assert allowed_statuses.any? - assert allowed_statuses.select(&:is_closed?).any? + assert allowed_statuses.any?(&:is_closed?) end def test_reschedule_an_issue_without_dates