mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 05:45:49 +01:00
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
This commit is contained in:
@@ -265,7 +265,7 @@ class MyControllerTest < Redmine::ControllerTest
|
||||
|
||||
assert_response :success
|
||||
assert_select '#block-issuesupdatedbyme' do
|
||||
report_url = CGI.unescape(css_select('h3 a').first.attr('href'))
|
||||
report_url = CGI.unescape(css_select('h3 a').first.attr(:href))
|
||||
assert_match 'f[]=project.status', report_url
|
||||
assert_match 'v[project.status][]=1', report_url
|
||||
assert_match 'f[]=updated_by', report_url
|
||||
@@ -306,7 +306,7 @@ class MyControllerTest < Redmine::ControllerTest
|
||||
|
||||
assert_response :success
|
||||
assert_select '#block-issuesassignedtome table.issues tbody' do
|
||||
report_url = css_select('h3 a').map {|e| e.attr('href')}.first
|
||||
report_url = css_select('h3 a').map {|e| e.attr(:href)}.first
|
||||
assert_match 'f%5B%5D=project.status', report_url
|
||||
assert_match 'v%5Bproject.status%5D%5B%5D=1', report_url
|
||||
|
||||
@@ -334,7 +334,7 @@ class MyControllerTest < Redmine::ControllerTest
|
||||
|
||||
assert_response :success
|
||||
assert_select '#block-issuesreportedbyme' do
|
||||
report_url = css_select('h3 a').map {|e| e.attr('href')}.first
|
||||
report_url = css_select('h3 a').map {|e| e.attr(:href)}.first
|
||||
assert_match 'f%5B%5D=project.status', report_url
|
||||
assert_match 'v%5Bproject.status%5D%5B%5D=1', report_url
|
||||
|
||||
@@ -366,7 +366,7 @@ class MyControllerTest < Redmine::ControllerTest
|
||||
|
||||
assert_response :success
|
||||
assert_select '#block-issueswatched table.issues tbody' do
|
||||
report_url = css_select('h3 a').map {|e| e.attr('href')}.first
|
||||
report_url = css_select('h3 a').map {|e| e.attr(:href)}.first
|
||||
assert_match 'f%5B%5D=project.status', report_url
|
||||
assert_match 'v%5Bproject.status%5D%5B%5D=1', report_url
|
||||
|
||||
|
||||
Reference in New Issue
Block a user