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
blueberry_rails-0.2.3 templates/database_cleaner_setup.rb
blueberry_rails-0.2.2 templates/database_cleaner_setup.rb
blueberry_rails-0.2.1 templates/database_cleaner_setup.rb
blueberry_rails-0.2.0 templates/database_cleaner_setup.rb
utensils-0.0.17 lib/utensils/database_cleaner.rb
utensils-0.0.16 lib/utensils/database_cleaner.rb
utensils-0.0.15 lib/utensils/database_cleaner.rb
utensils-0.0.14 lib/utensils/database_cleaner.rb