Stop using the mocha mocking framework

Before this change, the project uses two mocking frameworks: `mocha` and `rspec-mocks`.
This change gets rid of the last usages of `mocha`, replacing it with `rspec-mocks`.