Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
rspec-core/lib/rspec/core/formatters/progress_formatter.rb
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
29 lines (24 sloc)
778 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec::Support.require_rspec_core "formatters/base_text_formatter" | |
RSpec::Support.require_rspec_core "formatters/console_codes" | |
module RSpec | |
module Core | |
module Formatters | |
# @private | |
class ProgressFormatter < BaseTextFormatter | |
Formatters.register self, :example_passed, :example_pending, :example_failed, :start_dump | |
def example_passed(_notification) | |
output.print ConsoleCodes.wrap('.', :success) | |
end | |
def example_pending(_notification) | |
output.print ConsoleCodes.wrap('*', :pending) | |
end | |
def example_failed(_notification) | |
output.print ConsoleCodes.wrap('F', :failure) | |
end | |
def start_dump(_notification) | |
output.puts | |
end | |
end | |
end | |
end | |
end |