mirror of
https://github.com/inspec/inspec
synced 2025-01-07 02:39:10 +00:00
8c464965c1
and restore profile tests that had been completely mocked until now
31 lines
535 B
Ruby
31 lines
535 B
Ruby
# encoding: utf-8
|
|
# author: Dominik Richter
|
|
# author: Christoph Hartmann
|
|
|
|
module Inspec
|
|
class RunnerMock
|
|
attr_reader :tests
|
|
def initialize
|
|
@tests = []
|
|
end
|
|
|
|
def add_test(example, _rule_id)
|
|
@tests.push(example)
|
|
end
|
|
|
|
def example_group(*in_args, &in_block)
|
|
Class.new do
|
|
def args
|
|
in_args
|
|
end
|
|
def block
|
|
in_block
|
|
end
|
|
end
|
|
end
|
|
|
|
def run(_with = nil)
|
|
puts 'uhm.... nothing or something... dunno, ask your admin'
|
|
end
|
|
end
|
|
end
|