In Files

Bacon::SpecDoxOutput

Public Instance Methods

handle_requirement(description) click to toggle source
# File lib/bacon.rb, line 46
def handle_requirement(description)
  print "#{spaces}  - #{description}"
  error = yield
  puts error.empty? ? "" : " [#{error}]"
end
handle_specification(name) click to toggle source
# File lib/bacon.rb, line 40
def handle_specification(name)
  puts spaces + name
  yield
  puts if Counter[:context_depth] == 1
end
handle_summary() click to toggle source
# File lib/bacon.rb, line 52
def handle_summary
  print ErrorLog  if Backtraces
  puts "%d specifications (%d requirements), %d failures, %d errors" %
    Counter.values_at(:specifications, :requirements, :failed, :errors)
end
spaces() click to toggle source
# File lib/bacon.rb, line 58
def spaces
  "  " * (Counter[:context_depth] - 1)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.