[rspec-users] stubbing network calls

David Green justnothing at tiscali.co.uk
Wed Aug 22 13:09:39 EDT 2007


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
themselves, and returning a dummy value, but I'm sure there's a better way.


-- 
View this message in context: http://www.nabble.com/stubbing-network-calls-tf4312869.html#a12279004
Sent from the rspec-users mailing list archive at Nabble.com.



More information about the rspec-users mailing list