1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Session pool is not destroyed when reset_sessions! is called

This commit is contained in:
Jonas Nicklas 2010-07-29 15:29:48 +02:00 committed by Nicklas Ramhöj
parent 64d2c34589
commit e2c1a82f83
2 changed files with 0 additions and 10 deletions

View file

@ -56,7 +56,6 @@ module Capybara
# #
def reset_sessions! def reset_sessions!
session_pool.each { |mode, session| session.reset! } session_pool.each { |mode, session| session.reset! }
@session_pool = nil
end end
private private

View file

@ -99,15 +99,6 @@ describe Capybara do
end end
end end
describe '.reset_sessions!' do
it "should clear any persisted sessions" do
object_id = Capybara.current_session.object_id
Capybara.current_session.object_id.should == object_id
Capybara.reset_sessions!
Capybara.current_session.object_id.should_not == object_id
end
end
describe 'the DSL' do describe 'the DSL' do
before do before do
@session = Capybara @session = Capybara