Created
July 27, 2011 20:51
-
-
Save evjan/1110345 to your computer and use it in GitHub Desktop.
My cucumber rails selenium config
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 '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