Skip to content

Commit

Permalink
Merge pull request #39 from markbates/fix_issue_28
Browse files Browse the repository at this point in the history
Fixes issue #28 Errors using the :webkit driver
  • Loading branch information
joliss committed May 24, 2012
2 parents ec05655 + be45d1e commit 53513a6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/konacha/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ def run
begin
sleep 0.1
done, dots = session.evaluate_script('[Konacha.done, Konacha.dots]')
io.write dots[dots_printed..-1]
io.flush
dots_printed = dots.length
if dots
io.write dots[dots_printed..-1]
io.flush
dots_printed = dots.length
end
end until done

@examples = JSON.parse(session.evaluate_script('Konacha.getResults()')).map do |row|
Expand Down

0 comments on commit 53513a6

Please sign in to comment.