##// 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,8 +590,9 RAW
590 590 set_tmp_attachments_directory
591 591 a1 = Attachment.generate!(:filename => "test.txt", :created_on => 1.hour.ago)
592 592 a2 = Attachment.generate!(:filename => "test.txt")
593
594 assert_equal %(<p><a href="/attachments/download/#{a2.id}/test.txt" class="attachment">test.txt</a></p>),
593 result = link_to("test.txt", "/attachments/download/#{a2.id}/test.txt",
594 :class => "attachment")
595 assert_equal "<p>#{result}</p>",
595 596 textilizable('attachment:test.txt', :attachments => [a1, a2])
596 597 end
597 598
General Comments 0
You need to be logged in to leave comments. Login now