Sha256: 8d365737411c136ac695b4585431f745ffd0f9c3dc2cb4c5d58b39e7e551457b
Contents?: true
Size: 584 Bytes
Versions: 18
Compression:
Stored size: 584 Bytes
Contents
require 'cucumber/rails' require 'factory_girl' require 'database_cleaner' Dir[File.join(File.dirname(__FILE__), '..', '..', "spec/support/*.rb")].each {|f| require f} ENV["RAILS_ENV"] = "test" Capybara.default_selector = :css ActionController::Base.allow_rescue = false World(FactoryGirl::Syntax::Methods) 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 Cucumber::Rails::Database.javascript_strategy = :truncation Capybara.javascript_driver = :webkit
Version data entries
18 entries across 18 versions & 1 rubygems