Class: RSpec::Core::Formatters::BaseTextFormatter

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

Instance Method Summary collapse

Instance Method Details

#dump_summary(*args) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/rspec_expectation_count/rspec_expectation_count.rb', line 61

def dump_summary(*args)
  old_dump_summary(*args)
  count  = ::RSpec::Expectations.expectation_count
  plural = count == 1 ? '' : 's'
  output.puts "#{count} expectation#{plural}"
  output.puts ::RSpec::Expectations.expectation_debug
end

#old_dump_summaryObject



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

alias_method :old_dump_summary, :dump_summary