Don't rescue so aggressively
This commit is contained in:
parent
df34d2ef7d
commit
91b8740781
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue