Update tests to be compliant with #1037.

This commit is contained in:
Parker Moore 2013-05-07 16:45:15 +02:00
parent f9e3cf21f9
commit 5dd3b0b71d
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ class TestRedcarpet < Test::Unit::TestCase
should "pass redcarpet options" do should "pass redcarpet options" do
assert_equal "<h1>Some Header</h1>", @markdown.convert('# Some Header #').strip assert_equal "<h1>Some Header</h1>", @markdown.convert('# Some Header #').strip
end end
should "pass redcarpet SmartyPants options" do should "pass redcarpet SmartyPants options" do
assert_equal "<p>&ldquo;smart&rdquo;</p>", @markdown.convert('"smart"').strip assert_equal "<p>&ldquo;smart&rdquo;</p>", @markdown.convert('"smart"').strip
end end
@ -27,13 +27,13 @@ class TestRedcarpet < Test::Unit::TestCase
end end
should "render fenced code blocks" do should "render fenced code blocks" do
assert_equal "<div class=\"highlight\"><pre><code class=\"ruby\"><span class=\"nb\">puts</span> <span class=\"s2\">&quot;Hello world&quot;</span>\n</code></pre></div>", @markdown.convert( assert_equal "<div class=\"highlight\"><pre><code class=\"ruby language-ruby\"><span class=\"nb\">puts</span> <span class=\"s2\">&quot;Hello world&quot;</span>\n</code></pre></div>", @markdown.convert(
<<-EOS <<-EOS
```ruby ```ruby
puts "Hello world" puts "Hello world"
``` ```
EOS EOS
).strip ).strip
end end
end end
end end