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

Add test for document reset

This commit is contained in:
Thomas Walpole 2019-04-10 15:02:02 -07:00
parent b35d682349
commit 0080c84a13

View file

@ -80,5 +80,12 @@ RSpec.describe Capybara::Session do
session.quit
expect(session.driver).not_to eql driver
end
it 'resets the document' do
session = Capybara::Session.new(:rack_test, TestApp)
document = session.document
session.quit
expect(session.document.base).not_to eql document.base
end
end
end