Anyway here's a few quick helper method which you stick in
Spec::Runner.configureblock so that they are available to all your specifications.
The first set switches SSL on and off. I use them in the
The next patches a hole in the Rspec on Rails matchers, which seems to lack a wrapper around
The helper function
Then you can write the following specifications, e.g:
response.response_code.should == status_code(:created)
Of course this would be better in a custom matcher. Over to you.