From: Michael Boutros Date: 2009-08-07T11:49:14+09:00 Subject: Re: Testing with Mechanize Thanks for the replies Mark and Mike. I never thought about it the way that you discussed Mike, and I ended up separating the form submission and page loading code into their own methods, which cleaned up the code a bit and definitely made it easier for testing. I also started using Mocha because I like it's syntax more and find stubbing all instances of a class to be very useful. I'm glad to say I've finally seen the light of testing :) -- Posted via http://www.ruby-forum.com/.