Don't rescue so aggressively

This commit is contained in:
Jonas Nicklas 2011-04-07 16:17:51 +02:00
parent df34d2ef7d
commit 91b8740781
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@ class Capybara::RackTest::Browser
end
def current_url
last_request.url rescue ""
last_request.url
rescue Rack::Test::Error
""
end
def reset_host!