Created
August 6, 2014 10:48
-
-
Save jaikoo/daf88024b8de1cf9339b to your computer and use it in GitHub Desktop.
Force SSL for all request/feature tests in RSpec
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
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