What is the best way to test SSL addresses with Capybara?

I went around trying to come up with the easiest / easiest way to write query specifications for specific pages of my site. I basically need a way to get Capybara to load pages that are only accessible via https . Here is the relevant information:

  • I am currently using RSpec, Capybara and FactoryGirl on Rails 3.1.0.
  • This is an e-commerce site. Some controllers force all ssl actions to be triggered using the new force_ssl method in the controller class definition, and some do not. I need the cart and checkout pages to always be https: //, of course, while the rest of the site should remain accessible via http: //.
  • I would be fine with somehow biting the aspect of SSL requests, if only I knew how to do it!

I am sure that many people have encountered this problem. How did you do that?

+4
source share
1 answer

Which Capybara driver are you using? It should work perfectly with selenium.

0
source

All Articles