mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
We actually need to restart the driver, not the session
This commit is contained in:
@@ -93,7 +93,7 @@ RSpec.configure do |config|
|
||||
def restart_phantomjs
|
||||
Capybara.send('session_pool').values
|
||||
.select { |s| s.driver.is_a?(Capybara::Poltergeist::Driver) }
|
||||
.each { |driver| driver.restart}
|
||||
.each { |s| s.driver.restart}
|
||||
end
|
||||
|
||||
config.before(:all) { restart_phantomjs }
|
||||
|
||||
Reference in New Issue
Block a user