Class: Spec::Runner::Formatter::SpecdocFormatter
Instance Method Summary
collapse
#dump_failure, #dump_summary, #format_backtrace, #initialize, #spec_started, #start, #start_dump
Instance Method Details
#add_context(name, first) ⇒ Object
5
6
7
8
9
|
# File 'lib/spec/runner/formatter/specdoc_formatter.rb', line 5
def add_context(name, first)
@output.puts
@output.puts name
STDOUT.flush
end
|
#spec_failed(name, counter, failure) ⇒ Object
11
12
13
14
|
# File 'lib/spec/runner/formatter/specdoc_formatter.rb', line 11
def spec_failed(name, counter, failure)
@output.puts failure.expectation_not_met? ? red("- #{name} (FAILED - #{counter})") : magenta("- #{name} (ERROR - #{counter})")
STDOUT.flush
end
|
#spec_passed(name) ⇒ Object
16
17
18
19
|
# File 'lib/spec/runner/formatter/specdoc_formatter.rb', line 16
def spec_passed(name)
@output.print green("- #{name}\n")
STDOUT.flush
end
|