Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the ignore_ssl_errors option for Capybara Webkit in spec_helper.rb

In my spec_helper file I have:

  Capybara.javascript_driver = :webkit

capybara_webkit now has a ignore_ssl_errors option that I want to use. How do I specify that in my spec_helper?

like image 676
deb Avatar asked Oct 21 '11 21:10

deb


1 Answers

Here's how to register the :webkit driver with the :ignore_ssl_errors option.

Capybara.register_driver :webkit do |app|
  Capybara::Driver::Webkit.new(app, :ignore_ssl_errors => true)
end
like image 181
jaredjacobs Avatar answered Nov 14 '22 23:11

jaredjacobs