Method: Bacon::TapOutput#handle_requirement
- Defined in:
- lib/vendor/bacon.rb
#handle_requirement(description) ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/vendor/bacon.rb', line 77 def handle_requirement(description) ErrorLog.replace "" error = yield if error.empty? printf "ok %-3d - %s\n" % [Counter[:specifications], description] else printf "not ok %d - %s: %s\n" % [Counter[:specifications], description, error] puts ErrorLog.strip.gsub(/^/, '# ') end end |