Class: Specdown::TerminalReporter

Inherits:
Object
  • Object
show all
Includes:
Reporter
Defined in:
lib/specdown/reporters/terminal_reporter.rb

Direct Known Subclasses

ColorTerminalReporter

Instance Method Summary collapse

Methods included from Reporter

#summary

Instance Method Details

#failureObject



9
10
11
# File 'lib/specdown/reporters/terminal_reporter.rb', line 9

def failure
  "F"
end

#pendingObject



13
14
15
# File 'lib/specdown/reporters/terminal_reporter.rb', line 13

def pending
  "P"
end


24
25
# File 'lib/specdown/reporters/terminal_reporter.rb', line 24

def print_end
end


52
53
54
# File 'lib/specdown/reporters/terminal_reporter.rb', line 52

def print_failure(test)
  print failure
end


48
49
50
# File 'lib/specdown/reporters/terminal_reporter.rb', line 48

def print_pending(test)
  print pending
end


34
35
36
# File 'lib/specdown/reporters/terminal_reporter.rb', line 34

def print_readme_end(readme)
  print "\n"
end


27
28
29
# File 'lib/specdown/reporters/terminal_reporter.rb', line 27

def print_readme_start(readme)
  print "#{readme.file_name}: "
end


31
32
# File 'lib/specdown/reporters/terminal_reporter.rb', line 31

def print_readme_summary(readme)
end


21
22
# File 'lib/specdown/reporters/terminal_reporter.rb', line 21

def print_start
end


44
45
46
# File 'lib/specdown/reporters/terminal_reporter.rb', line 44

def print_success(test)
  print success
end


60
61
62
63
64
# File 'lib/specdown/reporters/terminal_reporter.rb', line 60

def print_summary(readmes)
  @report_summary = summary(readmes)
  bounding = binding rescue proc {}
  template.run bounding
end


41
42
# File 'lib/specdown/reporters/terminal_reporter.rb', line 41

def print_test_end(test)
end


38
39
# File 'lib/specdown/reporters/terminal_reporter.rb', line 38

def print_test_start(test)
end


56
57
58
# File 'lib/specdown/reporters/terminal_reporter.rb', line 56

def print_undefined(test)
  print undefined
end

#successObject



5
6
7
# File 'lib/specdown/reporters/terminal_reporter.rb', line 5

def success
  "."
end

#undefinedObject



17
18
19
# File 'lib/specdown/reporters/terminal_reporter.rb', line 17

def undefined
  "U"
end