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

Update README.md

There is a `teardown` callback available in Rails and using it eliminates any chance that `super` will not be called in overridden `setup` method.
This commit is contained in:
Artur Beljajev 2019-05-03 00:58:34 +03:00 committed by GitHub
parent 60d9f94fcb
commit 84cd07370c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,8 +277,7 @@ end
include Capybara::Minitest::Assertions
# Reset sessions and driver between tests
# Use super wherever this method is redefined in your individual test classes
def teardown
teardown do
Capybara.reset_sessions!
Capybara.use_default_driver
end