Permalink
Browse files

Fix code block tests

  • Loading branch information...
vmg committed Oct 10, 2012
1 parent 834d039 commit a2216d81d9cc5dae41749b6cdf12ab3543f76935
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/redcarpet_test.rb
View
@@ -313,11 +313,11 @@ def test_that_fenced_flag_works
def test_that_fenced_flag_works_without_space
text = "foo\nbar\n```\nsome\ncode\n```\nbaz"
- out = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :fenced_code_blocks => true, :lax_html_blocks => true).render(text)
- assert_include out, "<pre><code>"
+ out = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :fenced_code_blocks => true, :lax_spacing => true).render(text)
+ assert out.include?("<pre><code>")
out = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :fenced_code_blocks => true).render(text)
- assert_include out, "<pre><code>"
+ assert !out.include?("<pre><code>")
end
def test_that_headers_are_linkable

0 comments on commit a2216d8

Please sign in to comment.