Skip to content

Instantly share code, notes, and snippets.

@valo
Created October 20, 2009 17:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save valo/214433 to your computer and use it in GitHub Desktop.
require 'spec/expectations'
require 'webrat'
Webrat.configure do |config|
config.mode = :mechanize
end
class MechanizeWorld < Webrat::MechanizeAdapter
end
World do
session = Webrat::Session.new(Webrat::MechanizeAdapter.new)
session.extend Webrat::Matchers
session.extend Webrat::HaveTagMatcher
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment