Rspec mock deprecation

Was getting deprecation warnings when running tests as rspec now only allows `double` for creating test doubles.