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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user