Sha256: 5cf6b3ba6cc23f039396a18c78a8fc78c1961bb0eed9b793dcb9948e467b01ae

Contents?: true

Size: 303 Bytes

Versions: 13

Compression:

Stored size: 303 Bytes

Contents

require 'database_cleaner'

RSpec.configure do |config|

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

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

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rivendell-import-1.04 spec/support/database_cleaner.rb
rivendell-import-1.03 spec/support/database_cleaner.rb
rivendell-import-1.02 spec/support/database_cleaner.rb
rivendell-import-1.01 spec/support/database_cleaner.rb
rivendell-import-0.10 spec/support/database_cleaner.rb
rivendell-import-0.9 spec/support/database_cleaner.rb
rivendell-import-0.8 spec/support/database_cleaner.rb
rivendell-import-0.7 spec/support/database_cleaner.rb
rivendell-import-0.6 spec/support/database_cleaner.rb
rivendell-import-0.0.5 spec/support/database_cleaner.rb
rivendell-import-0.0.4 spec/support/database_cleaner.rb
rivendell-import-0.0.3 spec/support/database_cleaner.rb
rivendell-import-0.0.2 spec/support/database_cleaner.rb