class Inspec::RunnerMock
def add_profile(profile)
def add_profile(profile) @profiles.push(profile) end
def add_test(example, _rule)
def add_test(example, _rule) @tests.push(example) end
def example_group(*in_args, &in_block)
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 initialize
def initialize reset end
def reset
def reset @tests = [] @profiles = [] end
def run(_with = nil)
def run(_with = nil) puts 'uhm.... nothing or something... dunno, ask your admin' end