Class: Spec::Runner::Formatter::ProgressBarFormatter
Instance Attribute Summary
#dry_run
Instance Method Summary
collapse
#close, #colour=, #colourise, #dump_failure, #dump_pending, #dump_summary, #format_backtrace, #initialize
#close, #dump_failure, #dump_pending, #dump_summary, #example_started, #initialize, #start
Instance Method Details
#add_behaviour(name) ⇒ Object
5
6
|
# File 'lib/spec/runner/formatter/progress_bar_formatter.rb', line 5
def add_behaviour(name)
end
|
#example_failed(example, counter, failure) ⇒ Object
8
9
10
11
|
# File 'lib/spec/runner/formatter/progress_bar_formatter.rb', line 8
def example_failed(example, counter, failure)
@output.print colourise('F', failure)
@output.flush
end
|
#example_passed(example) ⇒ Object
13
14
15
16
|
# File 'lib/spec/runner/formatter/progress_bar_formatter.rb', line 13
def example_passed(example)
@output.print green('.')
@output.flush
end
|
#example_pending(behaviour_name, example_name, message) ⇒ Object
18
19
20
21
22
|
# File 'lib/spec/runner/formatter/progress_bar_formatter.rb', line 18
def example_pending(behaviour_name, example_name, message)
super
@output.print yellow('P')
@output.flush
end
|
#start_dump ⇒ Object
24
25
26
27
|
# File 'lib/spec/runner/formatter/progress_bar_formatter.rb', line 24
def start_dump
@output.puts
@output.flush
end
|