Replace "mock" calls with "double"

The "mock" method was deprecated in rspec-mocks 2.14.0.