Class: RSpec::Expectations::PositiveExpectationHandler
- Inherits:
-
Object
- Object
- RSpec::Expectations::PositiveExpectationHandler
- Defined in:
- lib/rspec_expectation_count/rspec_expectation_count.rb
Class Method Summary collapse
Class Method Details
.handle_matcher(*args) ⇒ Object
24 25 26 27 |
# File 'lib/rspec_expectation_count/rspec_expectation_count.rb', line 24 def handle_matcher(*args) ::RSpec::Expectations.expectation_count += 1 old_handle_matcher(*args) end |
.old_handle_matcher ⇒ Object
22 |
# File 'lib/rspec_expectation_count/rspec_expectation_count.rb', line 22 alias_method :old_handle_matcher, :handle_matcher |