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{

image@2x.png should not be parsed in image@2x.png

}, - textilizable(raw, :attachments => [attachment]) + assert_match( + %r{

image@2x.png should not be parsed in image@2x.png

}, + 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{

image@2x.png should not be parsed in image@2x.png

}, - textilizable(raw, :attachments => [attachment]) + assert_match( + %r{

image@2x.png should not be parsed in image@2x.png

}, + textilizable(raw, :attachments => [attachment])) end end