Module: MotionSpec::FastOutput

Defined in:
lib/motion-spec/output/fast.rb

Instance Method Summary collapse

Instance Method Details

#handle_requirement_begin(description) ⇒ Object



7
# File 'lib/motion-spec/output/fast.rb', line 7

def handle_requirement_begin(description); end

#handle_requirement_end(error) ⇒ Object



9
10
11
12
# File 'lib/motion-spec/output/fast.rb', line 9

def handle_requirement_end(error)
  return if error.empty?
  print error[0..0]
end

#handle_specification_begin(name) ⇒ Object



4
# File 'lib/motion-spec/output/fast.rb', line 4

def handle_specification_begin(name); end

#handle_specification_endObject



5
# File 'lib/motion-spec/output/fast.rb', line 5

def handle_specification_end; end

#handle_summaryObject



14
15
16
17
18
19
# File 'lib/motion-spec/output/fast.rb', line 14

def handle_summary
  puts '', "Finished in #{Time.now - @timer} seconds."
  puts ErrorLog if Backtraces
  puts '%d tests, %d assertions, %d failures, %d errors' %
    Counter.values_at(:specifications, :requirements, :failed, :errors)
end