mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Don't rescue so agressively
This commit is contained in:
parent
8ce6d4eb9d
commit
df34d2ef7d
2 changed files with 4 additions and 2 deletions
|
@ -93,7 +93,9 @@ protected
|
|||
end
|
||||
|
||||
def request_path
|
||||
request.path rescue ""
|
||||
last_request.path
|
||||
rescue Rack::Test::Error
|
||||
""
|
||||
end
|
||||
|
||||
def env
|
||||
|
|
|
@ -51,7 +51,7 @@ shared_examples_for "session" do
|
|||
end
|
||||
end
|
||||
|
||||
describe '#reset!', :focus => true do
|
||||
describe '#reset!' do
|
||||
it "removes cookies" do
|
||||
@session.visit('/set_cookie')
|
||||
@session.visit('/get_cookie')
|
||||
|
|
Loading…
Add table
Reference in a new issue