mirror of
https://github.com/redmine/redmine.git
synced 2025-11-17 18:50:53 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user