diff options
author | Go MAEDA <maeda@farend.jp> | 2023-10-12 10:08:15 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-10-12 10:08:15 +0000 |
commit | e0672104329285b3208732e383088e1f83d247e3 (patch) | |
tree | 93b5a5b5de8b5f820f758a349f9c732f91a31a50 /test | |
parent | ea38a40b7a5b67bd24f1d8eb7b55292476e15a0a (diff) | |
download | redmine-e0672104329285b3208732e383088e1f83d247e3.tar.gz redmine-e0672104329285b3208732e383088e1f83d247e3.zip |
Fix RuboCop offense Style/RedundantFilterChain (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@22337 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/issues_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 => { |