diff --git a/spec/oga/parser/cdata_spec.rb b/spec/oga/parser/cdata_spec.rb index d7aecce..896d462 100644 --- a/spec/oga/parser/cdata_spec.rb +++ b/spec/oga/parser/cdata_spec.rb @@ -3,18 +3,18 @@ require 'spec_helper' describe Oga::Parser do context 'cdata tags' do example 'parse a cdata tag' do - parse_html('').should == s(:document, s(:cdata, 'foo')) + parse('').should == s(:document, s(:cdata, 'foo')) end example 'parse an element inside a cdata tag' do - parse_html('foo
]]>').should == s( + parse('foo]]>').should == s( :document, s(:cdata, 'foo
') ) end example 'parse double brackets inside a cdata tag' do - parse_html('').should == s(:document, s(:cdata, ']]')) + parse('').should == s(:document, s(:cdata, ']]')) end end end diff --git a/spec/oga/parser/comments_spec.rb b/spec/oga/parser/comments_spec.rb index 034da7f..1c87c6d 100644 --- a/spec/oga/parser/comments_spec.rb +++ b/spec/oga/parser/comments_spec.rb @@ -3,11 +3,11 @@ require 'spec_helper' describe Oga::Parser do context 'comments' do example 'parse an empty comment' do - parse_html('').should == s(:document, s(:comment)) + parse('').should == s(:document, s(:comment)) end example 'parse a comment' do - parse_html('').should == s(:document, s(:comment, 'foo')) + parse('').should == s(:document, s(:comment, 'foo')) end end end diff --git a/spec/oga/parser/doctype_spec.rb b/spec/oga/parser/doctype_spec.rb index 5457220..301b7e2 100644 --- a/spec/oga/parser/doctype_spec.rb +++ b/spec/oga/parser/doctype_spec.rb @@ -3,25 +3,25 @@ require 'spec_helper' describe Oga::Parser do context 'doctypes' do example 'parse a doctype' do - parse_html('').should == s(:document, s(:doctype)) + parse('').should == s(:document, s(:doctype)) end example 'parse a doctype with the doctype type' do - parse_html('').should == s( + parse('').should == s( :document, s(:doctype, 'PUBLIC') ) end example 'parse a doctype with a public ID' do - parse_html('').should == s( + parse('').should == s( :document, s(:doctype, 'PUBLIC', 'foo') ) end example 'parse a doctype with a public and private ID' do - parse_html('').should == s( + parse('').should == s( :document, s(:doctype, 'PUBLIC', 'foo', 'bar') ) @@ -31,7 +31,7 @@ describe Oga::Parser do doctype = '' - parse_html(doctype).should == s( + parse(doctype).should == s( :document, s( :doctype, diff --git a/spec/oga/parser/documents_spec.rb b/spec/oga/parser/documents_spec.rb index 90e0c3c..204f8d7 100644 --- a/spec/oga/parser/documents_spec.rb +++ b/spec/oga/parser/documents_spec.rb @@ -13,7 +13,7 @@ describe Oga::Parser do