summaryrefslogtreecommitdiffstats
path: root/test/system
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-10-28 07:50:11 +0000
committerGo MAEDA <maeda@farend.jp>2022-10-28 07:50:11 +0000
commitee1476f802d34ee31d1e1c990165165338867ff6 (patch)
treed7848fddb34b876dbe05864d0b04ec98d5db8893 /test/system
parent6a55e94cd2ac8ed2462aa8b80ab9a96a8d43e25b (diff)
downloadredmine-ee1476f802d34ee31d1e1c990165165338867ff6.tar.gz
redmine-ee1476f802d34ee31d1e1c990165165338867ff6.zip
Fix RuboCop offense Rails/Pluck (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@21928 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system')
-rw-r--r--test/system/issues_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb
index 6d19b65df..6e34ce62c 100644
--- a/test/system/issues_test.rb
+++ b/test/system/issues_test.rb
@@ -580,7 +580,7 @@ class IssuesSystemTest < ApplicationSystemTestCase
csv = CSV.read(downloaded_file("issues.csv"))
subject_index = csv.shift.index('Subject')
- subjects = csv.map {|row| row[subject_index]}
+ subjects = csv.pluck(subject_index)
assert_equal subjects.sort, subjects
end