Sha256: 9dac2a30d3cc14ececd19ffb3131d1a9aa000a1dad2a5b4f31836ce8c0397e3a

Contents?: true

Size: 354 Bytes

Versions: 15

Compression:

Stored size: 354 Bytes

Contents

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.clean_with(:truncation)
  end

  config.before(:each, js: true) do
    DatabaseCleaner.strategy = :deletion
  end

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pah-0.0.28 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.27 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.26 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.25 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.24 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.23 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.22 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.21 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.20 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.19 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.17 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.16 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.15 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.14 lib/pah/files/spec/support/database_cleaner.rb
pah-0.0.13 lib/pah/files/spec/support/database_cleaner.rb