Fix rspec deprecation of 'mock' in tests
  - https://github.com/rspec/rspec-mocks/pull/233