Skip to content

Instantly share code, notes, and snippets.

@valo
Created October 20, 2009 17:19
Show Gist options
  • Save valo/214433 to your computer and use it in GitHub Desktop.
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