Added XML::Document#html?
This commit is contained in:
1 parent
ba2177e2cf
commit
9a586363e9
3 files changed
+18
-1
No files matched your search
@@ -97,6 +97,16 @@ describe Oga::XML::Document do
|
||||
end
|
||||
end
|
||||
|
||||
describe '#html?' do
|
||||
it 'returns false for an XML document' do
|
||||
described_class.new(:type => :xml).html?.should == false
|
||||
end
|
||||
|
||||
it 'returns true for an HTML document' do
|
||||
described_class.new(:type => :html).html?.should == true
|
||||
end
|
||||
end
|
||||
|
||||
describe '#inspect' do
|
||||
before do
|
||||
@instance = described_class.new(
|
||||
|
||||
Reference in new issue
Block a user