diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 11:40:23 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 11:40:23 +0000 |
commit | 7cae439d099be83d0edb6dcd13ef555b12b2bf23 (patch) | |
tree | 3fd283430cae62a0b0ed13e5740f9bd87e2459f7 /test/helpers | |
parent | 211534fccafbe2140ea8641d86c9996fa273981c (diff) | |
download | redmine-7cae439d099be83d0edb6dcd13ef555b12b2bf23.tar.gz redmine-7cae439d099be83d0edb6dcd13ef555b12b2bf23.zip |
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_pre_tags
git-svn-id: http://svn.redmine.org/redmine/trunk@18805 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers')
-rw-r--r-- | test/helpers/application_helper_test.rb | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 876ad72cc..e81b38025 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1078,24 +1078,22 @@ class ApplicationHelperTest < Redmine::HelperTest end def test_pre_tags - raw = <<-RAW -Before - -<pre> -<prepared-statement-cache-size>32</prepared-statement-cache-size> -</pre> - -After -RAW + raw = <<~RAW + Before - expected = <<-EXPECTED -<p>Before</p> -<pre> -<prepared-statement-cache-size>32</prepared-statement-cache-size> -</pre> -<p>After</p> -EXPECTED + <pre> + <prepared-statement-cache-size>32</prepared-statement-cache-size> + </pre> + After + RAW + expected = <<~EXPECTED + <p>Before</p> + <pre> + <prepared-statement-cache-size>32</prepared-statement-cache-size> + </pre> + <p>After</p> + EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '') end |