Removed RSpec shared examples.
This commit is contained in:
1 parent
1f855dc982
commit
d5002010fe
2 files changed
-20
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user