summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-05 04:14:43 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-05 04:14:43 +0000
commit79e5570b27a36bc5354c1c37545d92129a357bfd (patch)
tree6dc5a7180626fc1fb4c980eabc81fc3f83879d3f
parent2f43fca8f084a3503b999f1f0f4970a68c2c0579 (diff)
downloadredmine-79e5570b27a36bc5354c1c37545d92129a357bfd.tar.gz
redmine-79e5570b27a36bc5354c1c37545d92129a357bfd.zip
Rails4: replace hard-coded html with class at ApplicationHelperTest#test_attachment_link_should_link_to_latest_attachment
See r12784 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@12812 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/helpers/application_helper_test.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 4df9087f2..e4c2e6a36 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 %(<p><a href="/attachments/download/#{a2.id}/test.txt" class="attachment">test.txt</a></p>),
- textilizable('attachment:test.txt', :attachments => [a1, a2])
+ result = link_to("test.txt", "/attachments/download/#{a2.id}/test.txt",
+ :class => "attachment")
+ assert_equal "<p>#{result}</p>",
+ textilizable('attachment:test.txt', :attachments => [a1, a2])
end
def test_wiki_links