Cucumber, webrat and mechanize

by benl

There have been a few questions over on the webrat lists with regard to setting up a working environment for testing externally hosted web applications. This is actually a lot easier than perhaps what might be expected. I put together a quick sample over on github:

With one caveat that this only works for static content as javascript will not be interpreted by mechanize. I will put a selenium based sample up shortly to counter this.