Sha256: 62225b05abadc4413032bd07ebf61d34ffcfa2f386eb4414e06c6def0a3fa802

Contents?: true

Size: 459 Bytes

Versions: 4

Compression:

Stored size: 459 Bytes

Contents

RSpec.configure do |config|

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

  config.before(:each, :database_cleaner_delete) do
    DatabaseCleaner.strategy = :truncation
  end

  config.after(:suite) do
    DatabaseCleaner.clean
  end

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

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

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
acts-as-taggable-on-12.0.0 spec/support/database_cleaner.rb
acts-as-taggable-on-11.0.0 spec/support/database_cleaner.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/acts-as-taggable-on-10.0.0/spec/support/database_cleaner.rb
acts-as-taggable-on-10.0.0 spec/support/database_cleaner.rb