Ok, here is my stab at this:
Since be seem to be only setting and testing bare mocks, I’d assume
this is just useful to pass the mock as a stand in for some other
object. So running a test: [See the code at pastie:
I get subtly different messages:
Spec::Mocks::MockExpectationError in ‘mocking stub should not be ok if
it gets a at least one good argument and an unexpected argument’
Mock “mymock” received unexpected message :is_a? with (NoMock)
Spec::Mocks::MockExpectationError in ‘mocking mock should see the
incorrect one and report an error’
Mock “mymock” received :is_a? with unexpected arguments
The web page says:
"Explicitly Imprecise Counts
The message can be received 0 or more times.
I can’t envision a use case where this is needed, or can’t be emulated
via a stub.
I’d be interested in David C’s take or someone else’s.