Class: RSpec::Core::Formatters::ProgressFormatter

Inherits:
BaseTextFormatter show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/progress_formatter.rb

Instance Attribute Summary

Attributes inherited from BaseFormatter

#example_group, #output

Instance Method Summary collapse

Methods inherited from BaseTextFormatter

#close, #dump_failures, #dump_pending, #dump_summary, #message, #seed

Methods inherited from BaseFormatter

#close, #example_group_started, #initialize, #start

Constructor Details

This class inherits a constructor from RSpec::Core::Formatters::BaseFormatter

Instance Method Details

#example_failed(_notification) ⇒ Object



19
20
21
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/progress_formatter.rb', line 19

def example_failed(_notification)
  output.print ConsoleCodes.wrap('F', :failure)
end

#example_passed(_notification) ⇒ Object



11
12
13
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/progress_formatter.rb', line 11

def example_passed(_notification)
  output.print ConsoleCodes.wrap('.', :success)
end

#example_pending(_notification) ⇒ Object



15
16
17
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/progress_formatter.rb', line 15

def example_pending(_notification)
  output.print ConsoleCodes.wrap('*', :pending)
end

#start_dump(_notification) ⇒ Object



23
24
25
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/progress_formatter.rb', line 23

def start_dump(_notification)
  output.puts
end