mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 22:05:56 +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:
@@ -86,10 +86,10 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
# link to the attachment
|
||||
link = css_select(".cf_#{@field.id} .value a:not(.icon-download)")
|
||||
assert_equal 1, link.size
|
||||
assert_equal "testfile.txt", link.text
|
||||
assert_equal "testfile.txt", link.first.text
|
||||
|
||||
# preview the attachment
|
||||
get link.attr('href')
|
||||
get link.first.attr(:href)
|
||||
assert_response :success
|
||||
assert_select 'h2', :text => "#{issue.tracker} ##{issue.id} » testfile.txt"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user