Sha256: 1bf9e76808814d9d03622a3d5e7b33b904fcc66e28cd236ebe31eaec9ebf10ed

Contents?: true

Size: 399 Bytes

Versions: 18

Compression:

Stored size: 399 Bytes

Contents

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.clean_with(:truncation)
  end

  config.before(:each) do
    DatabaseCleaner.strategy = :transaction
  end

  config.before(:each, :js => true) do
    DatabaseCleaner.strategy = :truncation
  end

  config.before(:each) do
    DatabaseCleaner.start
  end

  config.append_after(:each) do
    DatabaseCleaner.clean
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rails_apps_testing-0.3.13 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.12 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.11 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.10 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.9 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.8 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.7 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.6 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.5 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.4 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.3 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.2 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.1 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.3.0 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.2.4 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.2.3 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.2.2 lib/generators/testing/configure/templates/database_cleaner.rb
rails_apps_testing-0.2.1 lib/generators/testing/configure/templates/database_cleaner.rb