[rspec-users] Surprising mock behavior

Stephen Eley sfeley at gmail.com
Fri Oct 17 16:11:02 EDT 2008

On Fri, Oct 17, 2008 at 3:54 PM, Zach Dennis <zach.dennis at gmail.com> wrote:
> On Fri, Oct 17, 2008 at 3:37 PM, Stephen Eley <sfeley at gmail.com> wrote:
>> That sounds right to me.  You declared 'file' as a mock.  Mocks are
>> bratty little children that treat it as an error and throw a tantrum
>> if you don't give them everything they expect, no more nor less.
> Are you a proud parent? :)

Yes, very.  And I mock my three-year-old's behavior often.  I also
tell him what he should_receive; what he returns, alas, is not yet

Have Fun,
   Steve Eley (sfeley at gmail.com)
   ESCAPE POD - The Science Fiction Podcast Magazine

More information about the rspec-users mailing list