diff --git a/test/test_markup.rb b/test/test_markup.rb index faa00936..0a78f7b9 100644 --- a/test/test_markup.rb +++ b/test/test_markup.rb @@ -196,15 +196,7 @@ context "Markup" do DATA ), commit_details) output = @wiki.page(page).formatted_data - expected = (<<-'HTML' -
-rot13='tr '\''A-Za-z'\'' '\''N-ZA-Mn-za-m'\'
-
-
-
-
-HTML
-).strip # remove trailing \n
+ expected = %Q{ rot13='tr '\\''A-Za-z'\\'' '\\''N-ZA-Mn-za-m'\\'\n
\n}.strip # remove trailing \n
assert_equal expected, output
end
@@ -420,9 +412,7 @@ HTML
test "code blocks" do
content = "a\n\n```ruby\nx = 1\n```\n\nb"
- output = "a
\n\n" +
- "x = " +
- "1\n\nb
" + output = %Q{a
\n\nx = 1\nb
} index = @wiki.repo.index index.add("Bilbo-Baggins.md", content) @@ -435,9 +425,7 @@ HTML test "code blocks with carriage returns" do content = "a\r\n\r\n```ruby\r\nx = 1\r\n```\r\n\r\nb" - output = "a
\n\n" +
- "x = " +
- "1\n\nb
" + output = %Q{a
\n\nx = 1\nb
} index = @wiki.repo.index index.add("Bilbo-Baggins.md", content) @@ -468,9 +456,7 @@ HTML test "code blocks with multibyte caracters indent" do content = "a\n\n```ruby\ns = 'やくしまるえつこ'\n```\n\nb" - output = "a
\n\n" +
- "s = 'やくしまるえつこ'" +
- "\n\nb
" + output = %Q{a
\n\ns = '\343\202\204\343\201\217\343\201\227\343\201\276\343\202\213\343\201\210\343\201\244\343\201\223'\nb
} index = @wiki.repo.index index.add("Bilbo-Baggins.md", content) index.commit("Add alpha.jpg")