Class: Specdown::TerminalReporter
- Inherits:
-
Object
- Object
- Specdown::TerminalReporter
- Includes:
- Reporter
- Defined in:
- lib/specdown/reporters/terminal_reporter.rb
Direct Known Subclasses
Instance Method Summary collapse
- #failure ⇒ Object
- #pending ⇒ Object
- #print_end ⇒ Object
- #print_failure(test) ⇒ Object
- #print_pending(test) ⇒ Object
- #print_readme_end(readme) ⇒ Object
- #print_readme_start(readme) ⇒ Object
- #print_readme_summary(readme) ⇒ Object
- #print_start ⇒ Object
- #print_success(test) ⇒ Object
- #print_summary(readmes) ⇒ Object
- #print_test_end(test) ⇒ Object
- #print_test_start(test) ⇒ Object
- #print_undefined(test) ⇒ Object
- #success ⇒ Object
- #undefined ⇒ Object
Methods included from Reporter
Instance Method Details
#failure ⇒ Object
9 10 11 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 9 def failure "F" end |
#pending ⇒ Object
13 14 15 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 13 def pending "P" end |
#print_end ⇒ Object
24 25 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 24 def print_end end |
#print_failure(test) ⇒ Object
52 53 54 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 52 def print_failure(test) print failure end |
#print_pending(test) ⇒ Object
48 49 50 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 48 def print_pending(test) print pending end |
#print_readme_end(readme) ⇒ Object
34 35 36 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 34 def print_readme_end(readme) print "\n" end |
#print_readme_start(readme) ⇒ Object
27 28 29 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 27 def print_readme_start(readme) print "#{readme.file_name}: " end |
#print_readme_summary(readme) ⇒ Object
31 32 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 31 def print_readme_summary(readme) end |
#print_start ⇒ Object
21 22 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 21 def print_start end |
#print_success(test) ⇒ Object
44 45 46 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 44 def print_success(test) print success end |
#print_summary(readmes) ⇒ Object
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 |
#print_test_end(test) ⇒ Object
41 42 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 41 def print_test_end(test) end |
#print_test_start(test) ⇒ Object
38 39 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 38 def print_test_start(test) end |
#print_undefined(test) ⇒ Object
56 57 58 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 56 def print_undefined(test) print undefined end |
#success ⇒ Object
5 6 7 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 5 def success "." end |
#undefined ⇒ Object
17 18 19 |
# File 'lib/specdown/reporters/terminal_reporter.rb', line 17 def undefined "U" end |