]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace hard-coded html with class at ApplicationHelperTest#test_link_to_atta...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 5 Feb 2014 08:56:03 +0000 (08:56 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 5 Feb 2014 08:56:03 +0000 (08:56 +0000)
See r12784 comment.

git-svn-id: http://svn.redmine.org/redmine/trunk@12821 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/application_helper_test.rb

index a6236ae835907a4e9220eb9a27634ab4d1a2d066..91ede7301b4c42e2525527f2d23bb85d5d0c77a8 100644 (file)
@@ -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)