Class: RSpec::Mocks::MethodDouble

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/mocks-call-through.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



22
23
24
# File 'lib/rspec/mocks-call-through.rb', line 22

def object
  @object
end

Instance Method Details

#add_live_stub(error_generator, expectation_ordering, expected_from, opts = {}, &implementation) ⇒ Object



23
24
25
26
27
28
# File 'lib/rspec/mocks-call-through.rb', line 23

def add_live_stub(error_generator, expectation_ordering, expected_from, opts={}, &implementation)
  configure_method
  stub = LiveMessageExpectation.new(self, error_generator, expectation_ordering, expected_from, @method_name, nil, :any, opts, &implementation)
  stubs.unshift stub
  stub
end