From: Mark Thomas Date: 2009-08-06T10:20:06+09:00 Subject: Re: Testing with Mechanize On Aug 5, 5:49 pm, Michael Boutros wrote: > Hello, > > I'm trying to jump onto the habit of testing and I'm not finding to too > easy because most of the code I write has to do with third party web > services. My current dilemma is how to stub or mock a Mechanize object > that deals with submitting forms. Can anyone else who tests with > Mechanize please provide some guidance? Maybe try Mechanize::Test, part of the tap-mechanize project: http://tap.rubyforge.org/tap-mechanize/classes/Tap/Mechanize/Test.html You may be able to do this with Mocha too. Perhaps someone with more Mocha experience can chime in.