From: James Mead Date: 2007-05-26T06:40:24+09:00 Subject: Re: Mocking Net::HTTP You should be able to do something like this... http://pastie.caboo.se/64679 Note that this is all stubs. If you want to assert that a particular method is called you need to use Mock#expects instead of Mock#stubs. If you want to assert that the method is called with particular parameters, you can use the Expectation#with. Also you might be able to use more real objects e.g. the response object...? I hope this makes sense. Probably best to come over to the Mocha list if you want more help... http://rubyforge.org/mailman/listinfo/mocha-developer -- James. http://blog.floehopper.org