Sha256: 9040f4aeab590c412724b78049b47839d56ecedb9be8ebc6538edf32deb9ad6c

Contents?: true

Size: 291 Bytes

Versions: 17

Compression:

Stored size: 291 Bytes

Contents

RSpec.configure do |config|

  DatabaseCleaner.strategy = :truncation

  config.before(:each) do
    ActiveRecord::Base.connection_pool.connection
    DatabaseCleaner.start
  end

  config.after(:each) do
    ActiveRecord::Base.connection_pool.connection
    DatabaseCleaner.clean
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
closure_tree-6.6.0 spec/support/database_cleaner.rb
closure_tree-6.5.0 spec/support/database_cleaner.rb
closure_tree-6.4.0 spec/support/database_cleaner.rb
closure_tree-6.3.0 spec/support/database_cleaner.rb
closure_tree-6.2.0 spec/support/database_cleaner.rb
closure_tree-6.1.0 spec/support/database_cleaner.rb
closure_tree-6.0.0 spec/support/database_cleaner.rb
closure_tree-6.0.0.gamma spec/support/database_cleaner.rb
closure_tree-6.0.0.alpha spec/support/database_cleaner.rb
closure_tree-5.2.0 spec/support/database_cleaner.rb
closure_tree-5.1.1 spec/support/database_cleaner.rb
closure_tree-5.1.0 spec/support/database_cleaner.rb
closure_tree-5.0.0 spec/support/database_cleaner.rb
closure_tree-4.6.3 spec/support/database_cleaner.rb
closure_tree-4.6.2 spec/support/database_cleaner.rb
closure_tree-4.6.1 spec/support/database_cleaner.rb
closure_tree-4.6.0 spec/support/database_cleaner.rb