better use new rspec mock syntax with `allow` - https://github.com/rspec/rspec-mocks/blob/master/README.md#method-stubs