From 84cd07370cade82f1946d3a84ba7283c7c6b90d8 Mon Sep 17 00:00:00 2001 From: Artur Beljajev <22315378+artur-beljajev@users.noreply.github.com> Date: Fri, 3 May 2019 00:58:34 +0300 Subject: [PATCH] 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. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 27925f2c2..d6f9e1b50 100644 --- a/README.md +++ b/README.md @@ -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