Sha256: c61abcb8f2b3637d5e52dbbb99202b42915a55610d2bd706127ded8066acd65a
Contents?: true
Size: 484 Bytes
Versions: 1
Compression:
Stored size: 484 Bytes
Contents
class MockConfig < Struct.new(:CONFIG, :HOSTS) def initialize(conf, hosts, is_pe = false) @is_pe = is_pe super conf, hosts end def is_pe? @is_pe end end class MockIO < IO def initialize end methods.each do |meth| define_method(:meth) {} end def === other super other end end module TestFileHelpers def create_files file_array file_array.each do |f| FileUtils.mkdir_p File.dirname(f) FileUtils.touch f end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beaker-0.0.0 | spec/mocks_and_helpers.rb |