Use RSpec.shared_example vs just shared_example.

This commit is contained in:
Yorick Peterse 2014-10-05 23:52:12 +02:00
parent d0a8a3b18c
commit 60da2bdd3a
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
shared_examples :node_set do |options| RSpec.shared_examples :node_set do |options|
example 'return a NodeSet instance' do example 'return a NodeSet instance' do
@set.is_a?(Oga::XML::NodeSet).should == true @set.is_a?(Oga::XML::NodeSet).should == true
end end
@ -8,7 +8,7 @@ shared_examples :node_set do |options|
end end
end end
shared_examples :empty_node_set do RSpec.shared_examples :empty_node_set do
example 'return a NodeSet instance' do example 'return a NodeSet instance' do
@set.is_a?(Oga::XML::NodeSet).should == true @set.is_a?(Oga::XML::NodeSet).should == true
end end