Sha256: 0a219c6aa50f15febd53b9836cf70ee0c76e79b4fc47a45410045b67cfef8804

Contents?: true

Size: 646 Bytes

Versions: 109

Compression:

Stored size: 646 Bytes

Contents

module Inspec
  class RunnerMock
    attr_reader :tests, :profiles
    attr_writer :backend
    def initialize
      reset
    end

    def reset
      @tests = []
      @profiles = []
    end

    def add_profile(profile)
      @profiles.push(profile)
    end

    def add_test(example, _rule)
      @tests.push(example)
    end

    def example_group(*in_args, &in_block)
      Class.new do
        define_method :args do
          in_args
        end
        define_method :block do
          in_block
        end
      end
    end

    def run(_with = nil)
      puts "uhm.... nothing or something... dunno, ask your admin"
    end
  end
end

Version data entries

109 entries across 109 versions & 2 rubygems

Version Path
inspec-core-4.29.3 lib/inspec/runner_mock.rb
inspec-core-4.28.0 lib/inspec/runner_mock.rb
inspec-core-4.26.13 lib/inspec/runner_mock.rb
inspec-core-4.26.4 lib/inspec/runner_mock.rb
inspec-core-4.25.1 lib/inspec/runner_mock.rb
inspec-core-4.24.32 lib/inspec/runner_mock.rb
inspec-core-4.24.28 lib/inspec/runner_mock.rb
inspec-core-4.24.26 lib/inspec/runner_mock.rb
inspec-core-4.24.8 lib/inspec/runner_mock.rb
inspec-core-4.23.15 lib/inspec/runner_mock.rb
inspec-core-4.23.11 lib/inspec/runner_mock.rb
inspec-core-4.23.10 lib/inspec/runner_mock.rb
inspec-core-4.23.4 lib/inspec/runner_mock.rb
inspec-core-4.22.22 lib/inspec/runner_mock.rb
inspec-core-4.22.8 lib/inspec/runner_mock.rb
inspec-core-4.22.1 lib/inspec/runner_mock.rb
inspec-core-4.22.0 lib/inspec/runner_mock.rb
inspec-core-4.21.3 lib/inspec/runner_mock.rb
inspec-core-4.21.1 lib/inspec/runner_mock.rb
inspec-core-4.20.10 lib/inspec/runner_mock.rb