Class: Specdown::ColorTerminalReporter

Inherits:
TerminalReporter show all
Defined in:
lib/specdown/reporters/color_terminal_reporter.rb

Instance Method Summary collapse

Methods inherited from TerminalReporter

#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

#failureObject



7
8
9
# File 'lib/specdown/reporters/color_terminal_reporter.rb', line 7

def failure
  Term::ANSIColor.red(Term::ANSIColor.bold super)
end


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

#successObject



3
4
5
# File 'lib/specdown/reporters/color_terminal_reporter.rb', line 3

def success
  Term::ANSIColor.green super
end

#undefinedObject



11
12
13
# File 'lib/specdown/reporters/color_terminal_reporter.rb', line 11

def undefined
  Term::ANSIColor.yellow super
end