Created
October 9, 2009 14:06
-
-
Save anonymous/206052 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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