Method: Compact::Ledger#record_contract

Defined in:
lib/compact/ledger.rb

#record_contract(name, test_double, methods_to_watch = []) ⇒ Object

deprecate this?



15
16
17
18
19
# File 'lib/compact/ledger.rb', line 15

def record_contract(name, test_double, methods_to_watch = [])
  @contracts[name] ||= Contract.new
  contract = @contracts[name]
  contract.watch(test_double, methods_to_watch)
end