Skip to content
This repository
Browse code

Fix code block tests

  • Loading branch information...
commit a2216d81d9cc5dae41749b6cdf12ab3543f76935 1 parent 834d039
Vicent Marti authored October 10, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  test/redcarpet_test.rb
6  test/redcarpet_test.rb
@@ -313,11 +313,11 @@ def test_that_fenced_flag_works
313 313
 
314 314
   def test_that_fenced_flag_works_without_space
315 315
     text = "foo\nbar\n```\nsome\ncode\n```\nbaz"
316  
-    out = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :fenced_code_blocks => true, :lax_html_blocks => true).render(text)
317  
-    assert_include out, "<pre><code>"
  316
+    out = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :fenced_code_blocks => true, :lax_spacing => true).render(text)
  317
+    assert out.include?("<pre><code>")
318 318
 
319 319
     out = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :fenced_code_blocks => true).render(text)
320  
-    assert_include out, "<pre><code>"
  320
+    assert !out.include?("<pre><code>")
321 321
   end
322 322
 
323 323
   def test_that_headers_are_linkable

0 notes on commit a2216d8

Please sign in to comment.
Something went wrong with that request. Please try again.