Sha256: a5c455bf64c32ed28a07d561d4c07b9fb96e9832941402d86b2256c3a37f2caf
Contents?: true
Size: 841 Bytes
Versions: 1
Compression:
Stored size: 841 Bytes
Contents
module ::RSpec::Core::Notifications # SummaryNotification is a Struct SummaryNotification.class_eval do def totals_line # string mutations summary = Formatters::Helpers.pluralize(example_count, "example") summary += ", " + Formatters::Helpers.pluralize(failure_count, "failure") summary += ", #{pending_count} pending" if pending_count > 0 summary end 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? # 2 string mutations formatted = formatted + colorized_rerun_commands(colorizer) + "\n" end formatted end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-rspec-0.6.2 | opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb |