mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Don't rescue so aggressively
This commit is contained in:
parent
df34d2ef7d
commit
91b8740781
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue