Rails4: replace hard-coded html with class at ApplicationHelperTest#test_link_to_attachment
See r12784 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@12821 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7928ce3797
commit
89920d2714
|
@ -1138,7 +1138,8 @@ RAW
|
|||
link_to_attachment(a)
|
||||
assert_equal '<a href="/attachments/3/logo.gif">Text</a>',
|
||||
link_to_attachment(a, :text => 'Text')
|
||||
assert_equal '<a href="/attachments/3/logo.gif" class="foo">logo.gif</a>',
|
||||
result = link_to("logo.gif", "/attachments/3/logo.gif", :class => "foo")
|
||||
assert_equal result,
|
||||
link_to_attachment(a, :class => 'foo')
|
||||
assert_equal '<a href="/attachments/download/3/logo.gif">logo.gif</a>',
|
||||
link_to_attachment(a, :download => true)
|
||||
|
|
Loading…
Reference in New Issue