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
This commit is contained in:
parent
2f43fca8f0
commit
79e5570b27
|
@ -590,8 +590,9 @@ 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>),
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue