Class: RSpec::Contracts::Double

Inherits:
Object
  • Object
show all
Includes:
Mocks::TestDouble
Defined in:
lib/rspec/contracts/double.rb

Instance Method Summary collapse

Constructor Details

#initialize(interface_name, *args) ⇒ Double

Returns a new instance of Double.



9
10
11
12
# File 'lib/rspec/contracts/double.rb', line 9

def initialize(interface_name, *args)
  @interface_name = interface_name
  __initialize_as_test_double interface_name, *args
end

Instance Method Details

#__build_mock_proxy(order_group) ⇒ Object



14
15
16
# File 'lib/rspec/contracts/double.rb', line 14

def __build_mock_proxy(order_group)
  Proxy.new self, order_group, @interface_name
end