From: Enrique Comba Riepenhausen Date: 2007-05-26T06:48:40+09:00 Subject: Re: Mocking Net::HTTP On 25 May 2007, at 23:40, James Mead wrote: > 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 > I checked your code and made a change in my test code taking that pastie (well the mock part of it) and commented out all the other tests... Run the tests and looked at the logs from kannel to see if there is any request hitting kannel... And guess what? Hey it works! :) :) :) Thanks a million! Enrique