On Mon, Sep 15, 2008 at 7:39 AM, Pat Maddox <[EMAIL PROTECTED]> wrote: >> So I'm proposing the idea of adding 'should_have_received' and test_spy >> in Rspec: >> >> --- >> x = test_spy('like a mock but more into espionage') >> >> #Action which does not fail on unexpected method but just records calls. >> some.action(x) >> >> x.should_have_received(:method).and_returned_with('some string') > > I actually started implementing this the day before Dan posted that. > It works, but I don't have all the nice error messages and stuff yet. > Will take me a couple days to get around to finishing it probably.
Have you implemented this within the mock framework or as a separate concept? David > > Pat > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users