module MotionSpec::SpecDoxOutput

Public Instance Methods

handle_requirement_begin(description) click to toggle source
# File lib/motion-spec/output/spec_dox.rb, line 11
def handle_requirement_begin(description)
  print "#{spaces}  - #{description}"
end
handle_requirement_end(error) click to toggle source
# File lib/motion-spec/output/spec_dox.rb, line 15
def handle_requirement_end(error)
  puts error.empty? ? '' : " [#{error}]"
end
handle_specification_begin(name) click to toggle source
# File lib/motion-spec/output/spec_dox.rb, line 3
def handle_specification_begin(name)
  puts spaces + name
end
handle_specification_end() click to toggle source
# File lib/motion-spec/output/spec_dox.rb, line 7
def handle_specification_end
  puts if Counter[:context_depth] == 1
end
handle_summary() click to toggle source
# File lib/motion-spec/output/spec_dox.rb, line 19
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/motion-spec/output/spec_dox.rb, line 25
def spaces
  '  ' * (Counter[:context_depth] - 1)
end