10 lines
236 B
Ruby
10 lines
236 B
Ruby
|
shared_examples :node_set do |options|
|
||
|
example 'return a NodeSet instance' do
|
||
|
@set.is_a?(Oga::XML::NodeSet).should == true
|
||
|
end
|
||
|
|
||
|
example 'return the right amount of rows' do
|
||
|
@set.length.should == options[:length]
|
||
|
end
|
||
|
end
|