Sha256: 9f34719a4b6db10a5af5407fe0dda036491309fe36112121b7ee23e2ff1c2efb
Contents?: true
Size: 767 Bytes
Versions: 1
Compression:
Stored size: 767 Bytes
Contents
module Bogus class Double extend Takes include ProxiesMethodCalls takes :object, :double_tracker, :verifies_stub_definition, :overwrites_methods, :records_double_interactions def stub proxy(:stubs) end def stubs(name, *args, &return_value) double_tracker.track(object) verifies_stub_definition.verify!(object, name, args) records_double_interactions.record(object, name, args, &return_value) overwrites_methods.overwrite(object, name) object.__shadow__.stubs(name, *args, &return_value) end def mock proxy(:mocks) end def mocks(name, *args, &return_value) stubs(name, *args, &return_value) object.__shadow__.mocks(name, *args, &return_value) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.0.3.rc.1 | lib/bogus/double.rb |