SSL testing in rspec

You have added the force_ssl option in your rails application, and the rspec tests fail with a redirection as ssl is required in the test evnironment.

Using a solution provided here you can add the following to your rspec test to ensure that ssl is used and the tests pass: