]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_link_to_att...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 18:16:27 +0000 (18:16 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 18:16:27 +0000 (18:16 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19053 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/helpers/application_helper_test.rb

index 8e5a3a03a0b1928b07e5a898e0ad27a0a390f533..299d34e398980c31ab5cfb8cf2618166c1bbf4ad 100644 (file)
@@ -1611,17 +1611,22 @@ class ApplicationHelperTest < Redmine::HelperTest
 
   def test_link_to_attachment
     a = Attachment.find(3)
-    assert_equal '<a href="/attachments/3">logo.gif</a>',
-      link_to_attachment(a)
-    assert_equal '<a href="/attachments/3">Text</a>',
-      link_to_attachment(a, :text => 'Text')
+    assert_equal(
+      '<a href="/attachments/3">logo.gif</a>',
+      link_to_attachment(a))
+    assert_equal(
+      '<a href="/attachments/3">Text</a>',
+      link_to_attachment(a, :text => 'Text'))
     result = link_to("logo.gif", "/attachments/3", :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)
-    assert_equal '<a href="http://test.host/attachments/3">logo.gif</a>',
-      link_to_attachment(a, :only_path => false)
+    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))
+    assert_equal(
+      '<a href="http://test.host/attachments/3">logo.gif</a>',
+      link_to_attachment(a, :only_path => false))
   end
 
   def test_thumbnail_tag