Module: Bacon::SpecDoxOutput
- Included in:
- Bacon
- Defined in:
- lib/mac_bacon.rb
Instance Method Summary collapse
- #handle_requirement_begin(description) ⇒ Object
- #handle_requirement_end(error) ⇒ Object
- #handle_specification_begin(name) ⇒ Object
- #handle_specification_end ⇒ Object
- #handle_summary ⇒ Object
- #spaces ⇒ Object
Instance Method Details
#handle_requirement_begin(description) ⇒ Object
35 36 37 |
# File 'lib/mac_bacon.rb', line 35 def handle_requirement_begin(description) print "#{spaces} - #{description}" end |
#handle_requirement_end(error) ⇒ Object
39 40 41 |
# File 'lib/mac_bacon.rb', line 39 def handle_requirement_end(error) puts error.empty? ? "" : " [#{error}]" end |
#handle_specification_begin(name) ⇒ Object
27 28 29 |
# File 'lib/mac_bacon.rb', line 27 def handle_specification_begin(name) puts spaces + name end |
#handle_specification_end ⇒ Object
31 32 33 |
# File 'lib/mac_bacon.rb', line 31 def handle_specification_end puts if Counter[:context_depth] == 1 end |
#handle_summary ⇒ Object
43 44 45 46 47 |
# File 'lib/mac_bacon.rb', line 43 def handle_summary print ErrorLog if Backtraces puts "%d specifications (%d requirements), %d failures, %d errors" % Counter.values_at(:specifications, :requirements, :failed, :errors) end |