##// END OF EJS Templates
Rails4: replace hard-coded html with class at ApplicationHelperTest#test_attachment_link_should_link_to_latest_attachment...
Toshi MARUYAMA -
r12537:79e5570b27a3
parent child
Show More
@@ -590,9 +590,10 RAW
590 set_tmp_attachments_directory
590 set_tmp_attachments_directory
591 a1 = Attachment.generate!(:filename => "test.txt", :created_on => 1.hour.ago)
591 a1 = Attachment.generate!(:filename => "test.txt", :created_on => 1.hour.ago)
592 a2 = Attachment.generate!(:filename => "test.txt")
592 a2 = Attachment.generate!(:filename => "test.txt")
593
593 result = link_to("test.txt", "/attachments/download/#{a2.id}/test.txt",
594 assert_equal %(<p><a href="/attachments/download/#{a2.id}/test.txt" class="attachment">test.txt</a></p>),
594 :class => "attachment")
595 textilizable('attachment:test.txt', :attachments => [a1, a2])
595 assert_equal "<p>#{result}</p>",
596 textilizable('attachment:test.txt', :attachments => [a1, a2])
596 end
597 end
597
598
598 def test_wiki_links
599 def test_wiki_links
General Comments 0
You need to be logged in to leave comments. Login now