Method: RSpec::Core::Notifications::SummaryNotification#fully_formatted
- Defined in:
- lib/rspec/core/notifications.rb
permalink #fully_formatted(colorizer = ::RSpec::Core::Formatters::ConsoleCodes) ⇒ String
Returns The summary information fully formatted in the way that RSpec's built-in formatters emit.
386 387 388 389 390 391 392 393 394 395 396 |
# File 'lib/rspec/core/notifications.rb', line 386 def fully_formatted(colorizer=::RSpec::Core::Formatters::ConsoleCodes) formatted = "\nFinished in #{formatted_duration} " \ "(files took #{formatted_load_time} to load)\n" \ "#{colorized_totals_line(colorizer)}\n" unless failed_examples.empty? formatted += (colorized_rerun_commands(colorizer) + "\n") end formatted end |