From 60da2bdd3a0ba3c259a1fee62b5f6b122116cbd5 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sun, 5 Oct 2014 23:52:12 +0200 Subject: [PATCH] Use RSpec.shared_example vs just shared_example. --- spec/support/shared_examples.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/shared_examples.rb b/spec/support/shared_examples.rb index ede42dd..2451ed7 100644 --- a/spec/support/shared_examples.rb +++ b/spec/support/shared_examples.rb @@ -1,4 +1,4 @@ -shared_examples :node_set do |options| +RSpec.shared_examples :node_set do |options| example 'return a NodeSet instance' do @set.is_a?(Oga::XML::NodeSet).should == true end @@ -8,7 +8,7 @@ shared_examples :node_set do |options| end end -shared_examples :empty_node_set do +RSpec.shared_examples :empty_node_set do example 'return a NodeSet instance' do @set.is_a?(Oga::XML::NodeSet).should == true end