diff --git a/lib/capybara/rack_test/browser.rb b/lib/capybara/rack_test/browser.rb index e2f22f92..91cb32a0 100644 --- a/lib/capybara/rack_test/browser.rb +++ b/lib/capybara/rack_test/browser.rb @@ -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!