Sha256: c4534f7ba81d1d09bed83b52be487a81e3d7e763bc71e3aa926e384e728d4980
Contents?: true
Size: 767 Bytes
Versions: 11
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) verifies_stub_definition.verify!(object, name, args) double_tracker.track(object) 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
11 entries across 11 versions & 1 rubygems