class Inspec::RunnerMock
Attributes
backend[W]
profiles[R]
tests[R]
Public Class Methods
new()
click to toggle source
# File lib/inspec/runner_mock.rb, line 5 def initialize reset end
Public Instance Methods
add_profile(profile)
click to toggle source
# File lib/inspec/runner_mock.rb, line 14 def add_profile(profile) @profiles.push(profile) end
add_test(example, _rule)
click to toggle source
# File lib/inspec/runner_mock.rb, line 18 def add_test(example, _rule) @tests.push(example) end
example_group(*in_args, &in_block)
click to toggle source
# File lib/inspec/runner_mock.rb, line 22 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
reset()
click to toggle source
# File lib/inspec/runner_mock.rb, line 9 def reset @tests = [] @profiles = [] end
run(_with = nil)
click to toggle source
# File lib/inspec/runner_mock.rb, line 33 def run(_with = nil) puts "uhm.... nothing or something... dunno, ask your admin" end