Replace deprecated mocking methods for examples for how to rspec mocks