Sha256: 6ee7eb6bd8049d71a288799a5e1af9c4e80fb7fbafae20ee68ddb1a9dd5c20e1

Contents?: true

Size: 745 Bytes

Versions: 8

Compression:

Stored size: 745 Bytes

Contents

# string mutations
::RSpec::Core::Notifications::SummaryNotification.class_eval do
  def totals_line
    summary = ::RSpec::Core::Formatters::Helpers.pluralize(example_count, "example")
    summary += ", " + ::RSpec::Core::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?
      formatted += colorized_rerun_commands(colorizer) + "\n"
    end

    formatted
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
opal-rspec-0.8.0 lib-opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb
opal-rspec-0.8.0.alpha3 lib-opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb
opal-rspec-0.8.0.alpha2 lib-opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb
opal-rspec-0.8.0.alpha1 lib-opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb
opal-rspec-0.7.1 lib-opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb
opal-rspec-0.7.0 lib-opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb
opal-rspec-0.7.0.rc.2 lib-opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb
opal-rspec-0.7.0.rc.1 lib-opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb