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:
parent
60d9f94fcb
commit
84cd07370c
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue