Sha256: d6ac9ebad5d3c5a6ea5979b82edf7a3dd78ea424946b51067015dc5b89fe147e
Contents?: true
Size: 670 Bytes
Versions: 13
Compression:
Stored size: 670 Bytes
Contents
# encoding: utf-8 # author: Dominik Richter # author: Christoph Hartmann module Inspec class RunnerMock attr_reader :tests, :profiles def initialize @tests = [] @profiles = [] end def add_profile(profile) @profiles.push(profile) end def add_test(example, _rule_id, _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
13 entries across 13 versions & 1 rubygems