We actually need to restart the driver, not the session

This commit is contained in:
Andy Palmer
2017-11-02 15:17:45 +11:00
committed by Rob H
parent 3bd4fc59d4
commit e94dc257a1

View File

@@ -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 }