Specifying a negative receive expectation could be considered to break respond_to?
Created by: JonRowe
Specifying a negative receive expectation (expect(...).to_not receive(:blah)
) could be considered to break respond_to?
, as reported via twitter:
I'm on the fence by this, it's slightly surprising but not unexpected given a knowledge of the internals, the fix is complicated because we can't just return false from respond_to?
for negative expectations (that could be a lie).