Skip to content

Instantly share code, notes, and snippets.

@jaikoo
Created August 6, 2014 10:48
Show Gist options
  • Save jaikoo/daf88024b8de1cf9339b to your computer and use it in GitHub Desktop.
Save jaikoo/daf88024b8de1cf9339b to your computer and use it in GitHub Desktop.
Force SSL for all request/feature tests in RSpec
config.before(:each) do
(request.env["rack.url_scheme"] = "https") if defined?(request) && request
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment