]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/RedundantFilterChain (#36919).
authorGo MAEDA <maeda@farend.jp>
Wed, 7 Jun 2023 12:37:09 +0000 (12:37 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 7 Jun 2023 12:37:09 +0000 (12:37 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22251 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_test.rb

index 1882300227b1af3d56ebfc5f696e210763965907..aa2ff82705eaf2db6cf780ab775b57952a5d123b 100644 (file)
@@ -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