Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

commented Nov 19, 2014

very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.