Added a test for parsing bare text tokens.

This commit is contained in:
Yorick Peterse 2014-03-13 00:42:58 +01:00
parent 34f8779c94
commit edf2e4112b
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
require 'spec_helper'
describe Oga::Parser do
example 'parse regular text' do
parse_html('foo').should == s(:document, s(:text, 'foo'))
end
end