Fix a few rspec deprecations hiding out in the test suite

* mock -> double
* raise_error