Rails4: replace hard-coded html with class at ApplicationHelperTest#test_attachment_links
See r12784 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@12813 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
79e5570b27
commit
47353387c1
@ -580,10 +580,13 @@ RAW
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_attachment_links
|
def test_attachment_links
|
||||||
to_test = {
|
text = 'attachment:error281.txt'
|
||||||
'attachment:error281.txt' => '<a href="/attachments/download/1/error281.txt" class="attachment">error281.txt</a>'
|
result = link_to("error281.txt", "/attachments/download/1/error281.txt",
|
||||||
}
|
:class => "attachment")
|
||||||
to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text, :attachments => Issue.find(3).attachments), "#{text} failed" }
|
assert_equal "<p>#{result}</p>",
|
||||||
|
textilizable(text,
|
||||||
|
:attachments => Issue.find(3).attachments),
|
||||||
|
"#{text} failed"
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_attachment_link_should_link_to_latest_attachment
|
def test_attachment_link_should_link_to_latest_attachment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user