test/tilt_markdown_test.rb in tilt-1.3.1 vs test/tilt_markdown_test.rb in tilt-1.3.2

- old
+ new

@@ -34,10 +34,13 @@ html = nrender "Hello <b>World</b>", :escape_html => false assert_equal "<p>Hello <b>World</b></p>", html end def test_escape_html_true + if self.class.template == Tilt::RedcarpetTemplate + flunk "redcarpet doesn't support :escape_html yet" + end html = nrender "Hello <b>World</b>", :escape_html => true assert_equal "<p>Hello &lt;b&gt;World&lt;/b&gt;</p>", html end def test_smart_quotes @@ -64,15 +67,11 @@ html = nrender "Hello ``World'' -- This is --- a test ...", :smartypants => false assert_equal "<p>Hello ``World'' -- This is --- a test ...</p>", html end def test_smarty_pants_true - if self.class.template == Tilt::RedcarpetTemplate - warn "\nsmartypants not yet fully supported by redcarpet (#{__FILE__}:#{__LINE__})" - else - html = nrender "Hello ``World'' -- This is --- a test ...", :smartypants => true - assert_equal "<p>Hello “World” — This is —– a test …</p>", html - end + html = nrender "Hello ``World'' -- This is --- a test ...", :smartypants => true + assert_equal "<p>Hello “World” — This is —– a test …</p>", html end end begin require 'rdiscount'