Class: RSpec::Expectations::PositiveExpectationHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec_expectation_count/rspec_expectation_count.rb

Class Method Summary collapse

Class Method Details

.handle_matcher(*args) ⇒ Object



29
30
31
32
33
# File 'lib/rspec_expectation_count/rspec_expectation_count.rb', line 29

def handle_matcher(*args)
  ::RSpec::Expectations.update_expectation_debug
  ::RSpec::Expectations.expectation_count += 1
  old_handle_matcher(*args)
end

.old_handle_matcherObject



27
# File 'lib/rspec_expectation_count/rspec_expectation_count.rb', line 27

alias_method :old_handle_matcher, :handle_matcher