Module: Bacon::SpecDoxOutput
- Included in:
- Bacon
- Defined in:
- lib/vendor/bacon.rb
Instance Method Summary collapse
- #handle_requirement(description) ⇒ Object
- #handle_specification(name) ⇒ Object
- #handle_summary ⇒ Object
Instance Method Details
#handle_requirement(description) ⇒ Object
42 43 44 45 46 |
# File 'lib/vendor/bacon.rb', line 42 def handle_requirement(description) print "- #{description}" error = yield puts error.empty? ? "" : " [#{error}]" end |
#handle_specification(name) ⇒ Object
36 37 38 39 40 |
# File 'lib/vendor/bacon.rb', line 36 def handle_specification(name) puts name yield puts end |
#handle_summary ⇒ Object
48 49 50 51 52 |
# File 'lib/vendor/bacon.rb', line 48 def handle_summary print ErrorLog puts "%d specifications (%d requirements), %d failures, %d errors" % Counter.values_at(:specifications, :requirements, :failed, :errors) end |