diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index e4c2e6a36..09cd91623 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -580,10 +580,13 @@ RAW end def test_attachment_links - to_test = { - 'attachment:error281.txt' => 'error281.txt' - } - to_test.each { |text, result| assert_equal "

#{result}

", textilizable(text, :attachments => Issue.find(3).attachments), "#{text} failed" } + text = 'attachment:error281.txt' + result = link_to("error281.txt", "/attachments/download/1/error281.txt", + :class => "attachment") + assert_equal "

#{result}

", + textilizable(text, + :attachments => Issue.find(3).attachments), + "#{text} failed" end def test_attachment_link_should_link_to_latest_attachment