Skip to content

Instantly share code, notes, and snippets.

@mrmemes-eth
Created September 22, 2009 02:21
Show Gist options
  • Save mrmemes-eth/190739 to your computer and use it in GitHub Desktop.
Save mrmemes-eth/190739 to your computer and use it in GitHub Desktop.
necessary configurations for using RSpec with Webrat for integration tests
require 'webrat'
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
Webrat.configure do |config|
config.mode = :rails
config.open_error_files = false # optional, but keeps me sane
end
Spec::Runner.configure do |config|
config.include(Webrat::Matchers, :type => [:integration])
end
class ActionController::Integration::Session; include Spec::Matchers; end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment