1
0
Fork 0
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:
Jonas Nicklas 2011-04-06 09:36:05 +02:00
parent 8ce6d4eb9d
commit df34d2ef7d
2 changed files with 4 additions and 2 deletions

View file

@ -93,7 +93,9 @@ protected
end
def request_path
request.path rescue ""
last_request.path
rescue Rack::Test::Error
""
end
def env

View file

@ -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')