Fix RuboCop offense Style/RedundantFilterChain (#36919).

git-svn-id: https://svn.redmine.org/redmine/trunk@22251 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2023-06-07 12:37:09 +00:00
parent cd20de2517
commit bd2a9027f1

View 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