Removed use of shared examples in Element specs.

This commit is contained in:
Yorick Peterse 2014-11-09 23:44:14 +01:00
parent ccbb19a42d
commit fb1927a7c7
1 changed files with 5 additions and 12 deletions

View File

@ -249,19 +249,12 @@ describe Oga::XML::Element do
before do
@t1 = Oga::XML::Text.new(:text => 'Foo')
@t2 = Oga::XML::Text.new(:text => 'Bar')
element = described_class.new(:children => [@t1, @t2])
@set = element.text_nodes
@element = described_class.new(:children => [@t1, @t2])
end
it_behaves_like :node_set, :length => 2
example 'return the first Text node' do
@set[0].should == @t1
end
example 'return the second Text node' do
@set[1].should == @t2
example 'return a node set containing the text nodes' do
@element.text_nodes.should == node_set(@t1, @t2)
end
end