Class: RSpec::Contracts::MockProxy

Inherits:
Mocks::Proxy
  • Object
show all
Defined in:
lib/rspec/contracts/mock_proxy.rb

Instance Method Summary collapse

Constructor Details

#initialize(object, order_group, interface) ⇒ MockProxy

Returns a new instance of MockProxy.



9
10
11
12
13
14
# File 'lib/rspec/contracts/mock_proxy.rb', line 9

def initialize(object, order_group, interface)
  super(object, order_group)
  @method_doubles = Hash.new do |h, k|
    h[k] = ContractMethodDouble.new(interface, object, k, self)
  end
end