Module: Bacon::TestUnitOutput

Defined in:
lib/vendor/bacon.rb

Instance Method Summary collapse

Instance Method Details

#handle_requirement(description) ⇒ Object



58
59
60
61
62
63
64
65
# File 'lib/vendor/bacon.rb', line 58

def handle_requirement(description)
  error = yield
  if error.empty?
    print "."
  else
    print error[0..0]
  end
end

#handle_specification(name) ⇒ Object



56
# File 'lib/vendor/bacon.rb', line 56

def handle_specification(name)  yield  end

#handle_summaryObject



67
68
69
70
71
# File 'lib/vendor/bacon.rb', line 67

def handle_summary
  puts "", ErrorLog
  puts "%d tests, %d assertions, %d failures, %d errors" %
    Counter.values_at(:specifications, :requirements, :failed, :errors)
end