Remove redundant Capybara actions

Resetting sessions and driver is automatically done by requiring
'capybara/rspec', as shown by the (lack of) that configuration for RSpec
in the Capybara README, manual testing of those settings, and Capybara's
code itself.
This commit is contained in:
Javi Martín
2018-08-29 23:45:46 +02:00
parent 2f860236a5
commit b153f5f902

View File

@@ -64,10 +64,6 @@ RSpec.configure do |config|
page.driver.reset! page.driver.reset!
end end
config.before(:each, type: :feature) do
Capybara.reset_sessions!
end
config.before do config.before do
DatabaseCleaner.start DatabaseCleaner.start
end end