class RSpec::Mocks::MessageExpectation
def and_call_original
- Note: - This is only available on partial mock objects.
def and_call_original if RSpec::Mocks::TestDouble === @method_double.object @error_generator.raise_only_valid_on_a_partial_mock(:and_call_original) else if implementation.inner_action RSpec.warning("You're overriding a previous implementation for this stub") end @implementation = AndCallOriginalImplementation.new(@method_double.original_method) @yield_receiver_to_implementation_block = false end end