lib/konacha/runner.rb in konacha-2.0.0 vs lib/konacha/runner.rb in konacha-2.1.0

- old
+ new

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