summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-08-20 23:40:58 +0000
committerGo MAEDA <maeda@farend.jp>2024-08-20 23:40:58 +0000
commitc069ea3a2440f4cb0641abd4e3ddb6be5bd6bdb2 (patch)
treed0bc8c17978db11a5a5526196b9c673132d33c60 /test/functional
parent86d262d5c57fc67250d254839f9400bfe853a9c1 (diff)
downloadredmine-c069ea3a2440f4cb0641abd4e3ddb6be5bd6bdb2.tar.gz
redmine-c069ea3a2440f4cb0641abd4e3ddb6be5bd6bdb2.zip
Use Array#intersect? introduced in Ruby 3.1 (#38585).
git-svn-id: https://svn.redmine.org/redmine/trunk@22972 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_custom_fields_visibility_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/issues_custom_fields_visibility_test.rb b/test/functional/issues_custom_fields_visibility_test.rb
index 0e9712438..c19872134 100644
--- a/test/functional/issues_custom_fields_visibility_test.rb
+++ b/test/functional/issues_custom_fields_visibility_test.rb
@@ -381,7 +381,7 @@ class IssuesCustomFieldsVisibilityTest < Redmine::ControllerTest
assert_response :found
users_to_test.each do |user, fields|
mails = ActionMailer::Base.deliveries.select {|m| m.to.include? user.mail}
- if (fields & [@field2, @field3]).any?
+ if fields.intersect?([@field2, @field3])
assert_equal 1, mails.size, "User #{user.id} was not notified"
else
assert_equal 0, mails.size, "User #{user.id} was notified"