Skip to content

Instantly share code, notes, and snippets.

@evjan
Created July 27, 2011 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evjan/1110345 to your computer and use it in GitHub Desktop.
Save evjan/1110345 to your computer and use it in GitHub Desktop.
My cucumber rails selenium config
require 'cucumber/rails'
Webrat.configure do |config|
config.mode = :selenium
config.application_framework = :rack
config.open_error_files = false
end
World(Rack::Test::Methods)
World(Webrat::Methods)
ActionController::Base.allow_rescue = false
Cucumber::Rails::World.use_transactional_fixtures = true
begin
DatabaseCleaner.strategy = :transaction
rescue NameError
raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment