@@ -590,9 +590,10 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>), | |
|
595 | textilizable('attachment:test.txt', :attachments => [a1, a2]) | |
|
593 | result = link_to("test.txt", "/attachments/download/#{a2.id}/test.txt", | |
|
594 | :class => "attachment") | |
|
595 | assert_equal "<p>#{result}</p>", | |
|
596 | textilizable('attachment:test.txt', :attachments => [a1, a2]) | |
|
596 | 597 | end |
|
597 | 598 | |
|
598 | 599 | def test_wiki_links |
General Comments 0
You need to be logged in to leave comments.
Login now