From: pudur.ramaswamy@... Date: 2007-06-08T03:10:34+09:00 Subject: Re: Mocking Net::HTTP On May 26, 6:46 am, Brian Candler wrote: > 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. I need to develop a mockup server, so i can do performance testing without needing the real server. I am only testing the client or the Rails application so i do not need to use real server. I need to override couple of Net::HTTP methods. Can you suggest which framework is better to start with to create mockup objects which would respond to the requests. Thanks in advance