Class: Spec::Runner::Formatter::BaseTextFormatter

Class | Spec::Runner::Formatter::BaseTextFormatter
In: | lib/spec/runner/formatter/base_text_formatter.rb
Parent: | BaseFormatter

Baseclass for text-based formatters. Can in fact be used for non-text based ones too - just ignore the `output` constructor argument.

### Methods

autospec? backtrace_line blue close colorize_failure colour colour? colourise dry_run? dump_failure dump_pending dump_summary example_group_started example_pending format_backtrace green magenta new output_to_tty? red yellow

### Attributes

example_group | [R] |
output | [R] |

### Public Class methods

new(options, output)

Creates a new instance that will write to `output`. If `output` is a String, output will be written to the File with that name, otherwise `output` is exected to be an IO (or an object that responds to puts and write).

### Public Instance methods

close()
colorize_failure(message, failure)
colourise(message, failure)
dump_failure(counter, failure)
dump_pending()
dump_summary(duration, example_count, failure_count, pending_count)
example_group_started(example_group_proxy)
example_pending(example, message, deprecated_pending_location=nil)
format_backtrace(backtrace)

### Protected Instance methods

autospec?()
backtrace_line(line)
blue(text)
colour(text, colour_code)
colour?()
dry_run?()
green(text)
magenta(text)
output_to_tty?()
red(text)
yellow(text)

[Validate]