From 7fab23199227009dd5591f5b8d6358a6718f3f5c Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Fri, 1 Aug 2014 22:09:08 +0200 Subject: [PATCH] Unique spec node names for Document#each_node. This makes it a little bit easier to see if the order is actually correct. --- spec/oga/xml/document_spec.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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