allow receive with multiple methods
Created by: avit
Previously it was possible to quickly stub methods thus:
obj.stub!(first: 1, last: 2)
Now these "should" be done as separate declarations with messier syntax:
allow(obj).to receive(:first) { 1 }
allow(obj).to receive(:last) { 2 }
Is there a way around this? Would it be feasible to have at least:
allow(obj).to receive(first: 1, last: 2)
or something like:
target(object).stub(first: 1, last: 2)