Sha256: 17f51aaeb697c00f8c685833310912b87327f571fa0340321bb03ae6ad9452cb

Contents?: true

Size: 394 Bytes

Versions: 48

Compression:

Stored size: 394 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.after(:each) do
    DatabaseCleaner.clean
  end

end

Version data entries

48 entries across 48 versions & 5 rubygems

Version Path
newsletter-3.2.25.1 spec/test_app/spec/support/database_cleaner.rb
newsletter-3.2.22.0 spec/test_app/spec/support/database_cleaner.rb
blueberry_rails-0.3.10 templates/spec/database_cleaner_setup.rb
blueberry_rails-0.3.9 templates/spec/database_cleaner_setup.rb
blueberry_rails-0.3.8 templates/database_cleaner_setup.rb
blueberry_rails-0.3.7 templates/database_cleaner_setup.rb
blueberry_rails-0.3.6 templates/database_cleaner_setup.rb
newsletter-3.2.7 spec/test_app/spec/support/database_cleaner.rb
newsletter-3.2.6 spec/test_app/spec/support/database_cleaner.rb
newsletter-3.2.5 spec/test_app/spec/support/database_cleaner.rb
newsletter-3.2.4 spec/test_app/spec/support/database_cleaner.rb
newsletter-3.2.2 spec/test_app/spec/support/database_cleaner.rb
newsletter-3.2.1 spec/test_app/spec/support/database_cleaner.rb
newsletter-3.2.0 spec/test_app/spec/support/database_cleaner.rb
blueberry_rails-0.3.5 templates/database_cleaner_setup.rb
blueberry_rails-0.3.4 templates/database_cleaner_setup.rb
newsletter-3.0.2 spec/test_app/spec/support/database_cleaner.rb
newsletter-3.0.1 spec/test_app/spec/support/database_cleaner.rb
newsletter-3.0.0 spec/test_app/spec/support/database_cleaner.rb
blueberry_rails-0.3.3 templates/database_cleaner_setup.rb