Class: Specdown::ColorTerminalReporter
Instance Method Summary
collapse
#pending, #print_end, #print_failure, #print_pending, #print_readme_end, #print_readme_summary, #print_start, #print_success, #print_summary, #print_test_end, #print_test_start, #print_undefined
Methods included from Reporter
#print_end, #print_failure, #print_pending, #print_readme_end, #print_readme_summary, #print_start, #print_success, #print_summary, #print_test_end, #print_test_start, #print_undefined, #summary
Instance Method Details
#failure ⇒ Object
7
8
9
|
# File 'lib/specdown/reporters/color_terminal_reporter.rb', line 7
def failure
Term::ANSIColor.red(Term::ANSIColor.bold super)
end
|
#print_readme_start(readme) ⇒ Object
15
16
17
|
# File 'lib/specdown/reporters/color_terminal_reporter.rb', line 15
def print_readme_start(readme)
print Term::ANSIColor.bold("#{readme.file_name}: ")
end
|
#success ⇒ Object
3
4
5
|
# File 'lib/specdown/reporters/color_terminal_reporter.rb', line 3
def success
Term::ANSIColor.green super
end
|
#undefined ⇒ Object
11
12
13
|
# File 'lib/specdown/reporters/color_terminal_reporter.rb', line 11
def undefined
Term::ANSIColor.yellow super
end
|