Class: RSpec::Expectations::NegativeExpectationHandler
- Inherits:
-
Object
- Object
- RSpec::Expectations::NegativeExpectationHandler
- Defined in:
- lib/rspec_expectation_count/rspec_expectation_count.rb
Class Method Summary collapse
Class Method Details
.handle_matcher(*args) ⇒ Object
35 36 37 38 |
# File 'lib/rspec_expectation_count/rspec_expectation_count.rb', line 35 def handle_matcher(*args) ::RSpec::Expectations.expectation_count += 1 old_handle_matcher(*args) end |
.old_handle_matcher ⇒ Object
33 |
# File 'lib/rspec_expectation_count/rspec_expectation_count.rb', line 33 alias_method :old_handle_matcher, :handle_matcher |