lib/konacha/runner.rb in konacha-2.3.0 vs lib/konacha/runner.rb in konacha-2.4.0

- old
+ new

@@ -19,10 +19,10 @@ events_consumed = 0 done = false begin sleep 0.1 events = JSON.parse(session.evaluate_script('window.top.Konacha.getEvents()')) - if events + if events.present? events[events_consumed..-1].each do |event| done = true if event['event'] == 'end' reporter.process_mocha_event(event) end