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:
parent
b35d682349
commit
0080c84a13
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue