Sha256: 1c56902765f71d539a52e48204aa805045444bc66f897e1b7714ed433947ce1e
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
module Bogus module PublicMethods def fake_for(*args, &block) inject.creates_fakes.create(*args, &block) end def record_calls_for(name) inject.adds_recording.add(name) end def verify_contract!(fake_name) inject.verifies_contracts.verify(fake_name) end def configure(&block) config.tap(&block) end def config inject.configuration end def reset! @injector = Bogus::Injector.new end def create_stub(object) inject.create_stub(object) end def create_mock(object) inject.create_mock(object) end def have_received(method = nil) inject.invocation_matcher(method) end private def inject @injector ||= Bogus::Injector.new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.0.1 | lib/bogus/public_methods.rb |