pudur.ramaswamy
6/7/2007 6:10:00 PM
On May 26, 6:46 am, Brian Candler <B.Cand...@pobox.com> 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