> The reason I'm posting here is that I believe Steve Harmen was
> looking to do something like this a while back and Joe was going to
> try hacking this into flexmock
Yes, damn than steve harman anyway for putting this bug in my ear.
I've forked flexmock and am playing with it. No promises on
completion but I'm getting to the
f = flexmock('foo')
do_something_with(f)
f.should_have_received(:bar).twice
It's not too hard to implement. The trick is seeing if it can live
with both. If your mock needs to return a value, you need to set that
expectation early.
If anyone is interested in pairing on it sometime I would love another
set of eyes.
-Joe
_______________
Joe O'Brien, artisan
EdgeCase
theedgecase.com