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

Version Path
devise_masquerade-0.4.0 features/support/env.rb
devise_masquerade-0.3.1 features/support/env.rb
devise_masquerade-0.3.0 features/support/env.rb
devise_masquerade-0.2.0 features/support/env.rb
devise_masquerade-0.1.8 features/support/env.rb
devise_masquerade-0.1.7 features/support/env.rb
devise_masquerade-0.1.6 features/support/env.rb
devise_masquerade-0.1.5 features/support/env.rb
devise_masquerade-0.1.4 features/support/env.rb
devise_masquerade-0.1.3 features/support/env.rb
devise_masquerade-0.1.2 features/support/env.rb
devise_masquerade-0.1.1 features/support/env.rb
devise_masquerade-0.1.0 features/support/env.rb
devise_masquerade-0.0.9 features/support/env.rb
devise_masquerade-0.0.8 features/support/env.rb
devise_masquerade-0.0.7 features/support/env.rb
devise_masquerade-0.0.6 features/support/env.rb
devise_masquerade-0.0.5 features/support/env.rb