test/tilt_markdown_test.rb in tilt-2.0.0.beta1 vs test/tilt_markdown_test.rb in tilt-2.0.0
- old
+ new
@@ -65,23 +65,23 @@
def test_smarty_pants_false
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
- 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 'tilt/rdiscount'
class MarkdownRDiscountTest < Minitest::Test
include MarkdownTests
template Tilt::RDiscountTemplate
+
+ def test_smarty_pants_true
+ html = nrender "Hello ``World'' -- This is --- a test ...", :smartypants => true
+ assert_equal "<p>Hello “World” – This is — a test …</p>", html
+ end
end
rescue LoadError => boom
# It should already be warned in the main tests
end
@@ -119,10 +119,15 @@
require 'tilt/bluecloth'
class MarkdownBlueClothTest < Minitest::Test
include MarkdownTests
template Tilt::BlueClothTemplate
+
+ def test_smarty_pants_true
+ html = nrender "Hello ``World'' -- This is --- a test ...", :smartypants => true
+ assert_equal "<p>Hello “World” — This is —– a test …</p>", html
+ end
end
rescue LoadError => boom
# It should already be warned in the main tests
end
@@ -135,11 +140,10 @@
# Doesn't support escaping
undef test_escape_html_true
# Smarty Pants is *always* on, but doesn't support it fully
undef test_smarty_pants
undef test_smarty_pants_false
- undef test_smarty_pants_true
end
rescue LoadError => boom
# It should already be warned in the main tests
end
@@ -153,10 +157,9 @@
# Doesn't support escaping
undef test_escape_html_true
# Doesn't support Smarty Pants, and even fails on ``Foobar''
undef test_smarty_pants
undef test_smarty_pants_false
- undef test_smarty_pants_true
# Smart Quotes is always on
undef test_smart_quotes
undef test_smart_quotes_false
end
rescue LoadError => boom