Class: Quickie::Runner
Class Method Summary collapse
Class Method Details
.reset ⇒ Object
10 11 12 13 |
# File 'lib/quickie_motion/runner.rb', line 10 def reset @trace = [] @stats = Hash.new(0) end |
.summary ⇒ Object
20 21 22 23 24 25 |
# File 'lib/quickie_motion/runner.rb', line 20 def summary puts puts "\n" << @trace.join("\n\n") unless @trace.empty? puts "\nPassed: #{@stats[:success]}, not quite: #{@stats[:failure]}, total tests: #{@stats.values.inject(:+)}." reset end |
.update(status, message = nil) ⇒ Object
15 16 17 18 |
# File 'lib/quickie_motion/runner.rb', line 15 def update(status, = nil) @stats[status] += 1 @trace << if end |