Skip to content

Instantly share code, notes, and snippets.

@DVG
Created May 21, 2009 17:07
Show Gist options
  • Save DVG/115571 to your computer and use it in GitHub Desktop.
Save DVG/115571 to your computer and use it in GitHub Desktop.
env.rb file for using Cucumber, Webrat, Mechanize and RSpec to test non-ruby applicaitons.
require 'webrat'
require 'webrat/core/matchers'
include Webrat::Methods
include Webrat::Matchers
Webrat.configure do |config|
config.mode = :mechanize
end
class MechanizeWorld < Webrat::MechanizeSession
require 'spec'
include Spec::Matchers
end
World do
MechanizeWorld.new
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment