From d5002010fe36269ee5194bc0edf355e036c57ea2 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Mon, 10 Nov 2014 00:06:26 +0100 Subject: [PATCH] Removed RSpec shared examples. --- spec/spec_helper.rb | 1 - spec/support/shared_examples.rb | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 spec/support/shared_examples.rb diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index fa88d15..8af4f02 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,7 +8,6 @@ end require_relative '../lib/oga' require_relative 'support/parsing' require_relative 'support/evaluation' -require_relative 'support/shared_examples' RSpec.configure do |config| config.color = true diff --git a/spec/support/shared_examples.rb b/spec/support/shared_examples.rb deleted file mode 100644 index 2451ed7..0000000 --- a/spec/support/shared_examples.rb +++ /dev/null @@ -1,19 +0,0 @@ -RSpec.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 - -RSpec.shared_examples :empty_node_set do - example 'return a NodeSet instance' do - @set.is_a?(Oga::XML::NodeSet).should == true - end - - example 'return the right amount of rows' do - @set.empty?.should == true - end -end