module MotionSpec::KnockOutput

Public Instance Methods

handle_requirement_begin(description) click to toggle source
# File lib/motion-spec/output/knock.rb, line 6
def handle_requirement_begin(description)
  @description = description
  ErrorLog.replace ''
end
handle_requirement_end(error) click to toggle source
# File lib/motion-spec/output/knock.rb, line 11
def handle_requirement_end(error)
  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_begin(name) click to toggle source
# File lib/motion-spec/output/knock.rb, line 3
def handle_specification_begin(name); end
handle_specification_end() click to toggle source
# File lib/motion-spec/output/knock.rb, line 4
def handle_specification_end; end
handle_summary() click to toggle source
# File lib/motion-spec/output/knock.rb, line 20
def handle_summary; end