From 0d7352813c54f4607760ceba2de058210bf4af82 Mon Sep 17 00:00:00 2001 From: Frank West Date: Fri, 15 Jun 2018 11:41:22 -0700 Subject: [PATCH] Set the SSL protocol for secure connections There are ssl errors when using stripe through phantom js. This allows other SSL protocols now. --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 08ad5094bc..40dc6cd256 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -36,7 +36,7 @@ require 'capybara/poltergeist' Capybara.javascript_driver = :poltergeist Capybara.register_driver :poltergeist do |app| - options = {phantomjs_options: ['--load-images=no'], window_size: [1280, 3600], timeout: 2.minutes} + options = {phantomjs_options: ['--load-images=no', '--ssl-protocol=any'], window_size: [1280, 3600], timeout: 2.minutes} # Extend poltergeist's timeout to allow ample time to use pry in browser thread #options.merge! {timeout: 5.minutes} # Enable the remote inspector: Use page.driver.debug to open a remote debugger in chrome