jnicklas/capybara — pull request #1296 by ironcladlou (2014-04-22 16:35:24+00:00)
Title: Use Ruby 2.x compatible rescue clauses

Ruby 2.x doesn't support non-class/module arguments to rescue clauses.
Ruby 1.9 only supported it due to what is now considered a regression:

https://bugs.ruby-lang.org/issues/4438

Remove string arguments from rescue clauses to prevent TypeErrors from
being raised during rescue attempts.