Module: RSpec::Armour::ExampleMethods
- Defined in:
- lib/rspec/armour/expect_and_call_original.rb
Instance Method Summary collapse
Instance Method Details
#expect_receive_and_call_original(target, method_name) ⇒ Object
55 56 57 58 59 60 |
# File 'lib/rspec/armour/expect_and_call_original.rb', line 55 def expect_receive_and_call_original(target, method_name) expectation = RSpec::Armour.without_restrictions do expect(target).to receive(method_name).and_call_original end ExpectationProxy.new(expectation, target) end |