Fix RuboCop offense Performance/MapMethodChain (#37247).

git-svn-id: https://svn.redmine.org/redmine/trunk@22280 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2023-08-23 09:05:20 +00:00
parent 86c5d7814f
commit 21a6fc71d6
12 changed files with 29 additions and 29 deletions

View File

@@ -101,7 +101,7 @@ class NewsControllerTest < Redmine::ControllerTest
get(:show, :params => {:id => 1})
assert_response :success
comments = css_select('#comments .wiki').map(&:text).map(&:strip)
comments = css_select('#comments .wiki').map {|e| e.text.strip}
assert_equal ["This is an other comment", "my first comment"], comments
end