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
Merge pull request #30 from adamphillips/swap_mock_for_double

Rspec mock deprecation