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


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

def print_end
end


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

def print_failure(test)
  print failure
end


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

def print_runner_end(runner)
  print "\n"
end


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

def print_runner_start(runner)
  print "#{runner.file_name}: "
end


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

def print_runner_summary(runner)
end


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

def print_start
end


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

def print_success(test)
  print success
end


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

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


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

def print_test_end(test)
end


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

def print_test_start(test)
end

#successObject



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

def success
  "."
end