summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_import_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-08-23 09:05:20 +0000
committerGo MAEDA <maeda@farend.jp>2023-08-23 09:05:20 +0000
commit21a6fc71d6806dc74e087de4cbf7b4acf3b8a3ba (patch)
tree5e205ca3488eb4301266fcdbccfde2a444be0e33 /test/unit/issue_import_test.rb
parent86c5d7814f4c3e860e449cdda05717984ca21405 (diff)
downloadredmine-21a6fc71d6806dc74e087de4cbf7b4acf3b8a3ba.tar.gz
redmine-21a6fc71d6806dc74e087de4cbf7b4acf3b8a3ba.zip
Fix RuboCop offense Performance/MapMethodChain (#37247).
git-svn-id: https://svn.redmine.org/redmine/trunk@22280 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_import_test.rb')
-rw-r--r--test/unit/issue_import_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/issue_import_test.rb b/test/unit/issue_import_test.rb
index f6ea0570e..04d9a2ba3 100644
--- a/test/unit/issue_import_test.rb
+++ b/test/unit/issue_import_test.rb
@@ -110,7 +110,7 @@ class IssueImportTest < ActiveSupport::TestCase
import.save!
issues = new_records(Issue, 3) {import.run}
- assert_equal ['New', 'New', 'Assigned'], issues.map(&:status).map(&:name)
+ assert_equal ['New', 'New', 'Assigned'], issues.map {|x| x.status.name}
end
def test_parent_should_be_set