##// END OF EJS Templates
Rails4: replace hard-coded html with class at ApplicationHelperTest#test_attachment_links...
Toshi MARUYAMA -
r12538:47353387c1af
parent child
Show More
@@ -580,10 +580,13 RAW
580 580 end
581 581
582 582 def test_attachment_links
583 to_test = {
584 'attachment:error281.txt' => '<a href="/attachments/download/1/error281.txt" class="attachment">error281.txt</a>'
585 }
586 to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text, :attachments => Issue.find(3).attachments), "#{text} failed" }
583 text = 'attachment:error281.txt'
584 result = link_to("error281.txt", "/attachments/download/1/error281.txt",
585 :class => "attachment")
586 assert_equal "<p>#{result}</p>",
587 textilizable(text,
588 :attachments => Issue.find(3).attachments),
589 "#{text} failed"
587 590 end
588 591
589 592 def test_attachment_link_should_link_to_latest_attachment
General Comments 0
You need to be logged in to leave comments. Login now