summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-12-29 06:12:27 +0000
committerGo MAEDA <maeda@farend.jp>2021-12-29 06:12:27 +0000
commitb6a26a60f3d425f340adc76e27d38c19505f254c (patch)
tree14475ea267754be1db511bff8ea1cfbf8901faef /test/functional/issues_controller_test.rb
parent52aef905ff92ebb34b7b6dbf870405f2351b41b4 (diff)
downloadredmine-b6a26a60f3d425f340adc76e27d38c19505f254c.tar.gz
redmine-b6a26a60f3d425f340adc76e27d38c19505f254c.zip
Fixes for Performance/StringIdentifierArgument introduced in RuboCop Performance 1.13.0 (#35142).
git-svn-id: http://svn.redmine.org/redmine/trunk@21330 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 52b63f1e0..2348c462e 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -2375,11 +2375,11 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_select 'div#issue_tree span.issues-stat' do
assert_select 'span.badge', text: '4'
assert_select 'span.open a', text: '3 open'
- assert_equal CGI.unescape(css_select('span.open a').first.attr('href')),
+ assert_equal CGI.unescape(css_select('span.open a').first.attr(:href)),
"/issues?parent_id=~1&set_filter=true&status_id=o"
assert_select 'span.closed a', text: '1 closed'
- assert_equal CGI.unescape(css_select('span.closed a').first.attr('href')),
+ assert_equal CGI.unescape(css_select('span.closed a').first.attr(:href)),
"/issues?parent_id=~1&set_filter=true&status_id=c"
end
end
@@ -2392,7 +2392,7 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_select 'div#issue_tree span.issues-stat' do
assert_select 'span.open a', text: '1 open'
- assert_equal CGI.unescape(css_select('span.open a').first.attr('href')),
+ assert_equal CGI.unescape(css_select('span.open a').first.attr(:href)),
"/issues?parent_id=~1&set_filter=true&status_id=o"
assert_select 'span.closed', text: '0 closed'
assert_select 'span.closed a', 0