Re: [rspec-users] Test doubles: expect "x" and don't care about anything else

2009-06-29 Thread Wincent Colaiuta
El 29/6/2009, a las 17:15, Wincent Colaiuta escribió: El 29/6/2009, a las 16:26, Ben Mabey escribió: You probably know this, but for the benefit of others... Pat made a change a while back that makes it so the stubbed return value will still be returned even if an expectation is added. Mea

Re: [rspec-users] Test doubles: expect "x" and don't care about anything else

2009-06-29 Thread Wincent Colaiuta
El 29/6/2009, a las 16:26, Ben Mabey escribió: You probably know this, but for the benefit of others... Pat made a change a while back that makes it so the stubbed return value will still be returned even if an expectation is added. Meaning, assuming the stub is in the before block, you ca

Re: [rspec-users] Test doubles: expect "x" and don't care about anything else

2009-06-29 Thread Ben Mabey
Matt Wynne wrote: On 28 Jun 2009, at 23:02, Wincent Colaiuta wrote: El 28/6/2009, a las 23:04, Matt Wynne escribió: On 28 Jun 2009, at 13:07, Wincent Colaiuta wrote: I've had one of my recurring doubts about test doubles come up again. The full post is here but I'll abbreviate the content

Re: [rspec-users] Test doubles: expect "x" and don't care about anything else

2009-06-29 Thread Wincent Colaiuta
El 29/6/2009, a las 9:33, Matt Wynne escribió: On 28 Jun 2009, at 23:02, Wincent Colaiuta wrote: El 28/6/2009, a las 23:04, Matt Wynne escribió: On 28 Jun 2009, at 13:07, Wincent Colaiuta wrote: I've had one of my recurring doubts about test doubles come up again. The full post is here

Re: [rspec-users] Test doubles: expect "x" and don't care about anything else

2009-06-29 Thread Matt Wynne
On 28 Jun 2009, at 23:02, Wincent Colaiuta wrote: El 28/6/2009, a las 23:04, Matt Wynne escribió: On 28 Jun 2009, at 13:07, Wincent Colaiuta wrote: I've had one of my recurring doubts about test doubles come up again. The full post is here but I'll abbreviate the content in this messag