Better error messages for relative counts
Created by: myronmarston
example do
dbl = double
dbl.should_receive(:foo).at_least(2).times
dbl
end
Failure:
1) RSpec::Mocks
Failure/Error: dbl.should_receive(:foo).at_least(2).times
(Double).foo(any args)
expected: 2 times
received: 0 times
The relative counts do not affect the failure message. It should say: expected: at least 2 times
. I noticed this when reviewing #241 as I had noticed the new test spies do not provide the level of detail that would be user friendly, and then noticed that that's the case for existing mock expectation failures as well.