summaryrefslogtreecommitdiff
path: root/test/text_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2012-12-31 03:20:53 -0700
committerDan Allen <dan.j.allen@gmail.com>2012-12-31 03:20:53 -0700
commita50e5b25935326fd89199efe68fd3a8d69cb6998 (patch)
treeac8f573410b6c1b3b64649fa7a3d0cf1b471d65d /test/text_test.rb
parent498fe62be04eeb661ea6f174aff98af9b68e8c58 (diff)
overhaul of inline text parsing & substitutions
- death to htmlify, no more hardcoded html! inline text is rendered using templates - create a common parent AbstractNode for all structured elements - create a common parent AbstractBlock for section, block and list item - create an Inline element for inline rendering - correct quoted text substitutions to be fully compliant w/ AsciiDoc - implement inline image macro - implement inline passthrough macros (using extract & restore) - add template for line break & callout - add replacements substitution (for symbols like copyright, trademark, etc) - substitute attributes in attribute values - pull regexs for inline parsing into Asciidoctor module - more robust regex for anchors and attribute lines - double-line heading should not be allowed to start w/ a dot - load tilt lazily (don't need to load if using built-in templates) - remove import of unused cgi library - optimized some regexs - lots 'o tests - more TomDoc
Diffstat (limited to 'test/text_test.rb')
-rw-r--r--test/text_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/text_test.rb b/test/text_test.rb
index 721f10c5..24234092 100644
--- a/test/text_test.rb
+++ b/test/text_test.rb
@@ -19,8 +19,8 @@ context "Text" do
test "single- and double-quoted text" do
rendered = render_string("``Where?,'' she said, flipping through her copy of `The New Yorker.'")
- assert_match /&ldquo;Where\?,&rdquo;/, rendered
- assert_match /&lsquo;The New Yorker.&rsquo;/, rendered
+ assert_match /&#8220;Where\?,&#8221;/, rendered
+ assert_match /&#8216;The New Yorker.&#8217;/, rendered
end
test "separator" do