The problem is that when we have 2 tests running and exception is thrown in 
test 1, then test 2 will fail due to the following reasons:

1. `Watir::Rails.error` is not cleared, so the next run checker will raise it 
again.
2. Middleware don't raise exception, so server (thin in my case) will stop. 
We need to re-raise it in middleware.

This pull request addresses this issue.
You can merge this Pull Request by running:

  git pull https://github.com/p0deje/watir-rails master

Or you can view, comment on it, or merge it online at:

  https://github.com/watir/watir-rails/pull/3

-- Commit Summary --

  * make sure exception catcher does not block the following tests
  * raise caught error so server doesn't halt

-- File Changes --

    M lib/watir/browser.rb (7)
    M lib/watir/rails.rb (7)
    M lib/watir/rails/middleware.rb (3)

-- Patch Links --

https://github.com/watir/watir-rails/pull/3.patch
https://github.com/watir/watir-rails/pull/3.diff

_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to