Yeah it's not really necessary, but it was my first time writing a spec for SSL so I added the protocol check to make sure request.env['HTTPS'] was behaving as expected.