Skip to content

Instantly share code, notes, and snippets.

@bsoule
Created November 18, 2014 05:21
Show Gist options
  • Save bsoule/1074018a27ac3fc3c0a8 to your computer and use it in GitHub Desktop.
Save bsoule/1074018a27ac3fc3c0a8 to your computer and use it in GitHub Desktop.
Today Stripe dropped support for SSLv3 protocol. We're using an older version of PhantomJS in our specs, which defaults to sslv3, so this broke a swath of the Beeminder test suite. Here's the fix for anyone else with PhantomJS tests that wants to force not-sslv3.
require 'capybara/poltergeist'
Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app, :inspector => true, :js_errors => true, :phantomjs_options => ['--ssl-protocol=tlsv1'])
end
@iancanderson
Copy link

very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment