Module: Bacon::KnockOutput

Defined in:
lib/bacon.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) handle_requirement(description)



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

- (Object) handle_specification(name)



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

def handle_specification(name)  yield  end

- (Object) handle_summary



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

def handle_summary;  end