Module: RSpec::Risky::Probe::ExpectationProbe::ReceivePatch
- Defined in:
- lib/rspec/risky/probe/expectation_probe.rb
Instance Method Summary collapse
- #setup_any_instance_expectation(*args, &block) ⇒ Object
- #setup_any_instance_negative_expectation(*args, &block) ⇒ Object
- #setup_expectation(*args, &block) ⇒ Object
- #setup_negative_expectation(*args, &block) ⇒ Object
Instance Method Details
#setup_any_instance_expectation(*args, &block) ⇒ Object
47 48 49 |
# File 'lib/rspec/risky/probe/expectation_probe.rb', line 47 def setup_any_instance_expectation(*args, &block) super.tap { ExpectationProbe.record_declared_mock_expectation } end |
#setup_any_instance_negative_expectation(*args, &block) ⇒ Object
51 52 53 |
# File 'lib/rspec/risky/probe/expectation_probe.rb', line 51 def setup_any_instance_negative_expectation(*args, &block) super.tap { ExpectationProbe.record_declared_mock_expectation } end |
#setup_expectation(*args, &block) ⇒ Object
39 40 41 |
# File 'lib/rspec/risky/probe/expectation_probe.rb', line 39 def setup_expectation(*args, &block) super.tap { ExpectationProbe.record_declared_mock_expectation } end |
#setup_negative_expectation(*args, &block) ⇒ Object
43 44 45 |
# File 'lib/rspec/risky/probe/expectation_probe.rb', line 43 def setup_negative_expectation(*args, &block) super.tap { ExpectationProbe.record_declared_mock_expectation } end |