Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-10-08 Thread Joseph Wilk
Brian Takita wrote: On Sun, Sep 21, 2008 at 11:17 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote: I've been doing further work on adding the Test Spy to the RR mocking framework. Awesome! Do you have a clone available? I'm not quite ready to push my work up to Github. I've been trying lots

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-10-06 Thread Brian Takita
On Sun, Sep 21, 2008 at 11:17 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote: > I've been doing further work on adding the Test Spy to the RR mocking > framework. Awesome! Do you have a clone available? > > During my background research I came across a Spy like mocking framework > called 'Not A Mock' by

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-21 Thread Pat Maddox
Joseph Wilk <[EMAIL PROTECTED]> writes: > http://notahat.com/not_a_mock > http://github.com/notahat/not_a_mock/tree/master > > Thought this might be of interest to you Pat. This is awesome. Thanks, Joseph. ___ rspec-users mailing list rspec-users@rubyfo

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-21 Thread Joseph Wilk
I've been doing further work on adding the Test Spy to the RR mocking framework. During my background research I came across a Spy like mocking framework called 'Not A Mock' by Pete Yandell. This comes with Rspec hooks. It uses a similar syntax to what we have discussed here and as Pat mention

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread Brian Takita
On Mon, Sep 15, 2008 at 9:54 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote: >>Doesn't RR already support test spy? > I don't believe so. There is nothing on the github page or anything I > can spot in the current code in git. The github docs do mention it as > something they are aiming to do. No, spies

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread Zach Dennis
On Mon, Sep 15, 2008 at 2:28 PM, Pat Maddox <[EMAIL PROTECTED]> wrote: > On Mon, Sep 15, 2008 at 12:54 PM, Joseph Wilk <[EMAIL PROTECTED]> wrote: >>>Doesn't RR already support test spy? >> I don't believe so. There is nothing on the github page or anything I >> can spot in the current code in git.

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread Pat Maddox
On Mon, Sep 15, 2008 at 12:54 PM, Joseph Wilk <[EMAIL PROTECTED]> wrote: >>Doesn't RR already support test spy? > I don't believe so. There is nothing on the github page or anything I > can spot in the current code in git. The github docs do mention it as > something they are aiming to do. > >> o =

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread Joseph Wilk
>Doesn't RR already support test spy? I don't believe so. There is nothing on the github page or anything I can spot in the current code in git. The github docs do mention it as something they are aiming to do. > o = stub("stub", :foo => true) > o.foo > o.should have_received(:foo) That sounds

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread David Chelimsky
On Mon, Sep 15, 2008 at 7:18 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Mon, Sep 15, 2008 at 5:09 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote: >> Thanks to a pointer from lizkeogh.com site I've been discovering the joy >> of the Mockito (http://mockito.org/) mocking framework for Java. It >>

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread Pat Maddox
On Mon, Sep 15, 2008 at 8:43 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > 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 espi

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread David Chelimsky
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 cal

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread Pat Maddox
> 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('so

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread David Chelimsky
On Mon, Sep 15, 2008 at 5:09 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote: > Thanks to a pointer from lizkeogh.com site I've been discovering the joy > of the Mockito (http://mockito.org/) mocking framework for Java. It > verifies behaviour after the action. It struck me how this matched the > format

[rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread Joseph Wilk
Thanks to a pointer from lizkeogh.com site I've been discovering the joy of the Mockito (http://mockito.org/) mocking framework for Java. It verifies behaviour after the action. It struck me how this matched the format I use in my Ruby cucumber features. Within Rspec if we could use post behaviour