summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 17:09:51 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 17:09:51 +0000
commitaa28599b854e46c5934ceb25ec8adcec0ae46a40 (patch)
tree41aafa58da44a0dc5b3612fce160d29de634ee23 /test
parent4588fb20c55d0aa359dcc86f0431445e8ff67910 (diff)
downloadredmine-aa28599b854e46c5934ceb25ec8adcec0ae46a40.tar.gz
redmine-aa28599b854e46c5934ceb25ec8adcec0ae46a40.zip
cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_attachment_links_to_images_with_email_format_should_not_be_parsed
git-svn-id: http://svn.redmine.org/redmine/trunk@19037 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/helpers/application_helper_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index dac7997c2..217d46589 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -807,17 +807,17 @@ class ApplicationHelperTest < Redmine::HelperTest
def test_attachment_links_to_images_with_email_format_should_not_be_parsed
attachment = Attachment.generate!(:filename => 'image@2x.png')
-
with_settings :text_formatting => 'textile' do
raw = "attachment:image@2x.png should not be parsed in image@2x.png"
- assert_match %r{<p><a class="attachment" href="/attachments/#{attachment.id}">image@2x.png</a> should not be parsed in image@2x.png</p>},
- textilizable(raw, :attachments => [attachment])
+ assert_match(
+ %r{<p><a class="attachment" href="/attachments/#{attachment.id}">image@2x.png</a> should not be parsed in image@2x.png</p>},
+ textilizable(raw, :attachments => [attachment]))
end
-
with_settings :text_formatting => 'markdown' do
raw = "attachment:image@2x.png should not be parsed in image@2x.png"
- assert_match %r{<p><a class="attachment" href="/attachments/#{attachment.id}">image@2x.png</a> should not be parsed in image@2x.png</p>},
- textilizable(raw, :attachments => [attachment])
+ assert_match(
+ %r{<p><a class="attachment" href="/attachments/#{attachment.id}">image@2x.png</a> should not be parsed in image@2x.png</p>},
+ textilizable(raw, :attachments => [attachment]))
end
end