Module: Bacon::KnockOutput

Defined in:
lib/bacon.rb

Instance Method Summary collapse

Instance Method Details

#handle_requirement(description) ⇒ Object



108
109
110
111
112
113
114
115
116
117
# File 'lib/bacon.rb', line 108

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



106
# File 'lib/bacon.rb', line 106

def handle_specification(name)  yield  end

#handle_summaryObject



119
# File 'lib/bacon.rb', line 119

def handle_summary;  end