diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 18:16:27 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-09 18:16:27 +0000 |
commit | 22bce3517bdc6a835858b1947878fe5ea7fbdf62 (patch) | |
tree | e946483d098245fa3839efeca70eccaf63f73b82 | |
parent | 8e6014a9f8c99d51b532ab38a110ea2bd017092b (diff) | |
download | redmine-22bce3517bdc6a835858b1947878fe5ea7fbdf62.tar.gz redmine-22bce3517bdc6a835858b1947878fe5ea7fbdf62.zip |
cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_link_to_attachment
git-svn-id: http://svn.redmine.org/redmine/trunk@19053 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/helpers/application_helper_test.rb | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 8e5a3a03a..299d34e39 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -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 |