Remove deprication warnings from rspec tests

Creating double objects using the `stub` and `mock` methods is now deprecated in favour of the `double` method. They all actually do the same thing. This reduces a lot of noise in the tests with a recent version of rspec.