Use test doubles in favor of stubs

* Silences deprecation warnings from latest Rspec