diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-22 14:33:27 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-22 14:33:27 +0000 |
commit | 6bf2bbeb0c6c6687e06be5a3dc4a350ff23ab2ed (patch) | |
tree | dee6d8dc99f83165c44e33c6dad3067ab2c5a2cb | |
parent | 5936e47729cafb34a1a77b94c68f039d4af7058d (diff) | |
download | redmine-6bf2bbeb0c6c6687e06be5a3dc4a350ff23ab2ed.tar.gz redmine-6bf2bbeb0c6c6687e06be5a3dc4a350ff23ab2ed.zip |
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_should_not_handle_as_preformatted_text_tags_that_starts_with_pre
git-svn-id: http://svn.redmine.org/redmine/trunk@19158 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb index 8823f8d1e..669e622e0 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -622,18 +622,16 @@ EXPECTED end def test_should_not_handle_as_preformatted_text_tags_that_starts_with_pre - text = <<-STR -<pree> - This is some text -</pree> -STR - - expected = <<-EXPECTED -<p><pree><br /> - This is some text<br /> -</pree></p> -EXPECTED - + text = <<~STR + <pree> + This is some text + </pree> + STR + expected = <<~EXPECTED + <p><pree><br /> + This is some text<br /> + </pree></p> + EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '') end |