Skip to content

Instantly share code, notes, and snippets.

@mlambie
Created May 31, 2011 09:04
Show Gist options
  • Save mlambie/1000208 to your computer and use it in GitHub Desktop.
Save mlambie/1000208 to your computer and use it in GitHub Desktop.
Additional webrat configuration
#!/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