Created
November 18, 2014 05:21
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
very helpful!