diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 4df9087..e4c2e6a 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -590,9 +590,10 @@ RAW set_tmp_attachments_directory a1 = Attachment.generate!(:filename => "test.txt", :created_on => 1.hour.ago) a2 = Attachment.generate!(:filename => "test.txt") - - assert_equal %(
), - textilizable('attachment:test.txt', :attachments => [a1, a2]) + result = link_to("test.txt", "/attachments/download/#{a2.id}/test.txt", + :class => "attachment") + assert_equal "#{result}
", + textilizable('attachment:test.txt', :attachments => [a1, a2]) end def test_wiki_links