From: Brian Candler Date: 2007-05-26T22:46:58+09:00 Subject: Re: Mocking Net::HTTP On Sat, May 26, 2007 at 04:25:59AM +0900, Enrique Comba Riepenhausen wrote: > I've taken a look at both frameworks and the following question > arises. If I am using my classes like the way I am using, how can I > possibly mockup Net::HTTP? By overriding Net::HTTP's "new" method to return a new mock object which has whatever behaviour you like. Or if you're using Net::HTTP.start, then override that.