summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 14:34:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-22 14:34:36 +0000
commitf4f93d6a3fb4ee12e6315e1f87b1a157f1bd614e (patch)
tree0903e87d77f6245c3036928f5f838d728648fa43
parent8f5190d5c0255feadb5d4c03f1d5caf7a747f8bf (diff)
downloadredmine-f4f93d6a3fb4ee12e6315e1f87b1a157f1bd614e.tar.gz
redmine-f4f93d6a3fb4ee12e6315e1f87b1a157f1bd614e.zip
cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_table_with_trailing_whitespace
git-svn-id: http://svn.redmine.org/redmine/trunk@19164 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb30
1 files changed, 14 insertions, 16 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 34e24669a..15d7666f7 100644
--- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
@@ -276,24 +276,22 @@ EXPECTED
end
def test_table_with_trailing_whitespace
- raw = <<-RAW
-This is a table with trailing whitespace in one row:
-
-|cell11|cell12|
-|cell21|cell22|
-|cell31|cell32|
-RAW
-
- expected = <<-EXPECTED
-<p>This is a table with trailing whitespace in one row:</p>
+ raw = <<~RAW
+ This is a table with trailing whitespace in one row:
-<table>
- <tr><td>cell11</td><td>cell12</td></tr>
- <tr><td>cell21</td><td>cell22</td></tr>
- <tr><td>cell31</td><td>cell32</td></tr>
-</table>
-EXPECTED
+ |cell11|cell12|
+ |cell21|cell22|
+ |cell31|cell32|
+ RAW
+ expected = <<~EXPECTED
+ <p>This is a table with trailing whitespace in one row:</p>
+ <table>
+ <tr><td>cell11</td><td>cell12</td></tr>
+ <tr><td>cell21</td><td>cell22</td></tr>
+ <tr><td>cell31</td><td>cell32</td></tr>
+ </table>
+ EXPECTED
assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
end