Created
May 31, 2011 09:04
-
-
Save mlambie/1000208 to your computer and use it in GitHub Desktop.
Additional webrat configuration
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
#!/usr/bin/env ruby | |
$: << File.expand_path(File.dirname(__FILE__)) | |
require 'cucumber/nagios' | |
require 'webrat/adapters/mechanize' | |
require 'webrat_logging_patches' | |
class ResponseHelper | |
def response | |
webrat_session.response | |
end | |
end | |
World do | |
ResponseHelper.new | |
Webrat::Session.new(Webrat::MechanizeAdapter.new) | |
end | |
Webrat.configure do |config| | |
config.mode = :rails | |
config.open_error_files = false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment