locomotivecms/engine — Issue #293: Force SSL Testing
Author: cwoodcox
Created: 2012-01-30 19:35:26+00:00
State: open

So, I've written a feature that adds a configuration setting to force SSL in the admin panel, but I can't get the tests to work right. I'll attach the commit (0765ee6d58), here's the failure that I get.

```
Failures:

1) ##enable_admin_ssl should redirect to SSL on admin when enabled
Failure/Error: response.status.should == 301
expected: 301
got: 404 (using ==)
# ./spec/requests/admin_ssl_spec.rb:14:in `block (3 levels) in '

2) ##enable_admin_ssl should not redirect to SSL on admin when disabled
Failure/Error: response.status.should == 301
expected: 301
got: 404 (using ==)
# ./spec/requests/admin_ssl_spec.rb:22:in `block (3 levels) in '

Finished in 0.62663 seconds
2 examples, 2 failures

Failed examples:

rspec ./spec/requests/admin_ssl_spec.rb:10 # ##enable_admin_ssl should redirect to SSL on admin when enabled
rspec ./spec/requests/admin_ssl_spec.rb:18 # ##enable_admin_ssl should not redirect to SSL on admin when disabled
```

Any ideas?