lib/inspec/runner.rb in inspec-4.18.39 vs lib/inspec/runner.rb in inspec-4.18.51

- old
+ new

@@ -226,11 +226,11 @@ end new_tests end def eval_with_virtual_profile(command) - require "fetchers/mock" + require "inspec/fetcher/mock" add_target({ "inspec.yml" => "name: inspec-shell" }) our_profile = @target_profiles.first ctx = our_profile.runner_context # Load local profile dependencies. This is used in inspec shell @@ -305,9 +305,11 @@ end def add_resource(method_name, arg, opts, block) case method_name when "describe" + opts = { backend: @test_collector.backend }.merge opts + @test_collector.example_group(*arg, opts, &block) when "expect" block.example_group when "describe.one" tests = arg.map do |x|