diff --git a/spec/oga/xml/document_spec.rb b/spec/oga/xml/document_spec.rb index cd2a3f0..01d43bb 100644 --- a/spec/oga/xml/document_spec.rb +++ b/spec/oga/xml/document_spec.rb @@ -34,12 +34,12 @@ describe Oga::XML::Document do before do @document = parse(<<-EOF.strip.gsub(/\s+/m, '')) - - Foo - - - Bar - + + Foo + + + Bar + EOF end @@ -51,7 +51,7 @@ describe Oga::XML::Document do names << (node.is_a?(Oga::XML::Element) ? node.name : node.text) end - names.should == %w{books book title Foo book title Bar} + names.should == %w{books book1 title1 Foo book2 title2 Bar} end example 'yield the document indexes' do