Sha256: bb26fce268c60ce70979916c839e8dca520679a14796a77d47c1549cb6bad0a9

Contents?: true

Size: 310 Bytes

Versions: 23

Compression:

Stored size: 310 Bytes

Contents

RSpec.configure do |config|
  config.use_transactional_fixtures = false

  config.before :all do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.clean_with(:truncation)
  end

  config.before :each do
    DatabaseCleaner.start
  end

  config.after :each do
    DatabaseCleaner.clean
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ab_admin-0.8.3 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.8.2 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.8.1 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.8.0 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.7.0 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.6.1 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.6.0 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.5.0 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.4.0 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.3.6 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.3.5 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.3.4 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.3.3 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.3.2 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.3.1 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.3.0 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.2.3 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.2.2 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.2.1 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.2.0 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb