Re: [rspec-users] Can I use mocking in this way?

2010-04-05 Thread David Chelimsky
On Apr 5, 2010, at 9:37 PM, steve ross wrote: > On Apr 5, 2010, at 8:09 AM, Pat Maddox wrote: >> >> Sounds like a lot of work >> >> >> On Apr 3, 2010, at 9:08 PM, Julian Leviston wrote: >> >>> Sorry I meant send AND __send__ >>> >>> Julian. >>> >>> On 04/04/2010, at 11:45 AM, Julian Levisto

Re: [rspec-users] Can I use mocking in this way?

2010-04-05 Thread steve ross
On Apr 5, 2010, at 8:09 AM, Pat Maddox wrote: > > Sounds like a lot of work > > > On Apr 3, 2010, at 9:08 PM, Julian Leviston wrote: > >> Sorry I meant send AND __send__ >> >> Julian. >> >> On 04/04/2010, at 11:45 AM, Julian Leviston wrote: >> >>> >>> On 04/04/2010, at 7:32 AM, David Chelim

Re: [rspec-users] Can I use mocking in this way?

2010-04-05 Thread Pat Maddox
Sounds like a lot of work On Apr 3, 2010, at 9:08 PM, Julian Leviston wrote: > Sorry I meant send AND __send__ > > Julian. > > On 04/04/2010, at 11:45 AM, Julian Leviston wrote: > >> >> On 04/04/2010, at 7:32 AM, David Chelimsky wrote: >> >>> On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik wro

Re: [rspec-users] Stub a class and instances

2010-04-05 Thread David Chelimsky
On Apr 4, 2010, at 11:21 PM, Marcelo de Moraes Serpa wrote: > For example, I have this scenario where a Directory model will only save if > it can connect to the LDAP server. In a test I'm writting, though, connecting > to the LDAP server is not relevant, so I tried doing this: > > context "L