Skip to content

Instantly share code, notes, and snippets.

Created October 9, 2009 14:06
Show Gist options
  • Save anonymous/206052 to your computer and use it in GitHub Desktop.
Save anonymous/206052 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'webrat'
require 'webrat/mechanize'
class MechanizeWorld < Webrat::MechanizeSession
require 'spec'
include Spec::Matchers
def response
webrat_session.response
end
end
World do
MechanizeWorld.new
end
#sean added this
Webrat.configure do |config|
config.mode = :mechanize
end
World(Webrat::Methods)
World(Webrat::Matchers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment