Rspec mock deprecation

As of rspec-mocks 2.14.0 `mock` was deprecated, `double` should be used
instead. For more details see

https://github.com/rspec/rspec-mocks/issues/214