From e0672104329285b3208732e383088e1f83d247e3 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 12 Oct 2023 10:08:15 +0000 Subject: [PATCH] Fix RuboCop offense Style/RedundantFilterChain (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22337 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index d572a1f80..b8580cd15 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -2947,7 +2947,7 @@ class IssuesControllerTest < Redmine::ControllerTest def test_show_export_to_pdf issue = Issue.find(3) - assert issue.relations.select{|r| r.other_issue(issue).visible?}.present? + assert issue.relations.any? {|r| r.other_issue(issue).visible?} get( :show, :params => {