From 89920d27146719b454d8bb3641bb67bdb17b070e Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 5 Feb 2014 08:56:03 +0000 Subject: [PATCH] Rails4: replace hard-coded html with class at ApplicationHelperTest#test_link_to_attachment See r12784 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@12821 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/helpers/application_helper_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index a6236ae83..91ede7301 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -1138,7 +1138,8 @@ RAW link_to_attachment(a) assert_equal 'Text', link_to_attachment(a, :text => 'Text') - assert_equal 'logo.gif', + result = link_to("logo.gif", "/attachments/3/logo.gif", :class => "foo") + assert_equal result, link_to_attachment(a, :class => 'foo') assert_equal 'logo.gif', link_to_attachment(a, :download => true) -- 2.39.5