Use the new expectation syntax for mocks
Created by: iain
If you want to use the new expectation syntax, then the current mock syntax will look out of place.
That's why I propose we introduce the following matcher:
expect(object).to receive(:message).with(arg1, arg2)
Some considerations:
- This would not be usable without rspec-expectations. I don't know how problematic this is, but it is a feature of rspec-mocks.
- I don't know if we should change
stub
. It's not an expectation/assertion, so I don't think it needs to change.