Class: RSpec::Mocks::MethodDouble
- Inherits:
-
Object
- Object
- RSpec::Mocks::MethodDouble
- Defined in:
- lib/rspec/mocks-call-through.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
Instance Attribute Details
#object ⇒ Object (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 |