Merge pull request #650 from chef/dr/rspec-world

bugfix: rspec world handling on rspec 3.5
This commit is contained in:
Christoph Hartmann 2016-04-17 00:03:41 -04:00
commit 8071fe4a66
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'rainbow', '~> 2'
spec.add_dependency 'method_source', '~> 0.8'
spec.add_dependency 'rubyzip', '~> 1.1'
spec.add_dependency 'rspec', '~> 3.3'
spec.add_dependency 'rspec', '~> 3'
spec.add_dependency 'rspec-its', '~> 1.2'
spec.add_dependency 'pry', '~> 0'

View file

@ -48,7 +48,7 @@ module Inspec
# @return [nil]
def add_test(example, rule_id, rule)
set_rspec_ids(example, rule_id, rule)
@tests.register(example)
@tests.example_groups.push(example)
end
# Retrieve the list of tests that have been added.