Re: [rspec-users] stubbing network calls

2007-08-22 Thread David Green
On 8/22/07, David Green <[EMAIL PROTECTED]> wrote: > > I have a couple of methods which make networks calls. Where's the best > place > to stub them so they are stubbed for every description automatically? I > tried in spec_helper.rb but they are no longer stubbed when a spec runs. > > at the mom

Re: [rspec-users] stubbing network calls

2007-08-22 Thread aslak hellesoy
On 8/22/07, David Green <[EMAIL PROTECTED]> wrote: > > I have a couple of methods which make networks calls. Where's the best place > to stub them so they are stubbed for every description automatically? I > tried in spec_helper.rb but they are no longer stubbed when a spec runs. > > at the moment,

[rspec-users] stubbing network calls

2007-08-22 Thread David Green
I have a couple of methods which make networks calls. Where's the best place to stub them so they are stubbed for every description automatically? I tried in spec_helper.rb but they are no longer stubbed when a spec runs. at the moment, I'm checking for the test environment in the methods themse