Module: Bacon::KnockOutput
- Defined in:
- lib/bacon.rb
Instance Method Summary collapse
- #handle_requirement(description) ⇒ Object
- #handle_specification(name) ⇒ Object
- #handle_summary ⇒ Object
Instance Method Details
#handle_requirement(description) ⇒ Object
103 104 105 106 107 108 109 110 111 112 |
# File 'lib/bacon.rb', line 103 def handle_requirement(description) ErrorLog.replace "" error = yield if error.empty? puts "ok - %s" % [description] else puts "not ok - %s: %s" % [description, error] puts ErrorLog.strip.gsub(/^/, '# ') if Backtraces end end |
#handle_specification(name) ⇒ Object
101 |
# File 'lib/bacon.rb', line 101 def handle_specification(name) yield end |
#handle_summary ⇒ Object
114 |
# File 'lib/bacon.rb', line 114 def handle_summary; end |