summaryrefslogtreecommitdiff
path: root/test/text_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2014-02-16 01:39:51 -0700
committerDan Allen <dan.j.allen@gmail.com>2014-02-16 01:43:21 -0700
commitd2fc99182cfa635dc25aecee83b93a22338bedab (patch)
tree364e4a37b95ab20881f6fcaf5a7d908adafa0eb4 /test/text_test.rb
parent16b64087bc066b99e33976ed4901ec83bb3bbbb1 (diff)
call each thing by its right name
- rename Lexer to Parser - use dot notation instead of double colon notation for class methods
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 02d59339..24de8da2 100644
--- a/test/text_test.rb
+++ b/test/text_test.rb
@@ -36,7 +36,7 @@ context "Text" do
input.concat(File.readlines(sample_doc_path(:encoding)))
doc = empty_document
reader = Asciidoctor::PreprocessorReader.new doc, input
- block = Asciidoctor::Lexer.next_block(reader, doc)
+ block = Asciidoctor::Parser.next_block(reader, doc)
assert_xpath '//pre', block.render.gsub(/^\s*\n/, ''), 1
end
@@ -46,7 +46,7 @@ include::fixtures/encoding.asciidoc[tags=romé]
EOS
doc = empty_safe_document :base_dir => File.expand_path(File.dirname(__FILE__))
reader = Asciidoctor::PreprocessorReader.new doc, input
- block = Asciidoctor::Lexer.next_block(reader, doc)
+ block = Asciidoctor::Parser.next_block(reader, doc)
output = block.render
assert_css '.paragraph', output, 1
end