Class: PartyParrot::Formatters::RSpec3::Base

Inherits:
RSpec::Core::Formatters::BaseTextFormatter
  • Object
show all
Includes:
PartyParrot::FormatterUtilities
Defined in:
lib/party_parrot/formatters/rspec3/base.rb

Constant Summary collapse

MINIMAL_TERMINAL_WIDTH =
90

Constants included from PartyParrot::FormatterUtilities

PartyParrot::FormatterUtilities::TEXT_DECORATION

Instance Attribute Summary

Attributes included from PartyParrot::FormatterUtilities

#current_example

Instance Method Summary collapse

Methods included from PartyParrot::FormatterUtilities

#example_failed, #example_passed, #example_pending, #example_started, #start

Constructor Details

#initialize(output) ⇒ Base

Returns a new instance of Base.



14
15
16
# File 'lib/party_parrot/formatters/rspec3/base.rb', line 14

def initialize(output)
  super(output)
end

Instance Method Details

#dump_summary(notification) ⇒ Object



18
19
20
# File 'lib/party_parrot/formatters/rspec3/base.rb', line 18

def dump_summary(notification)
  output.print("You've partied for #{notification.duration} seconds")
end