Created
May 21, 2009 17:07
-
-
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.
This file contains 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
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