summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-05 08:56:03 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-05 08:56:03 +0000
commit89920d27146719b454d8bb3641bb67bdb17b070e (patch)
tree5fb5e001db1b9048fff04efcd4939a924208837c
parent7928ce3797d8394a5cdd64a02002daf88f8e6252 (diff)
downloadredmine-89920d27146719b454d8bb3641bb67bdb17b070e.tar.gz
redmine-89920d27146719b454d8bb3641bb67bdb17b070e.zip
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
-rw-r--r--test/unit/helpers/application_helper_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index a6236ae83..91ede7301 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -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)