Sha256: 7313f1467247b580265d3cf3300a527f46392d36ff13ec47135045eba1793e52

Contents?: true

Size: 343 Bytes

Versions: 10

Compression:

Stored size: 343 Bytes

Contents

require 'database_cleaner'

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

  config.before(:suite) 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

10 entries across 10 versions & 1 rubygems

Version Path
socialite-0.2.1 spec/support/database_cleaner.rb
socialite-0.2.0 spec/support/database_cleaner.rb
socialite-0.1.2 spec/support/database_cleaner.rb
socialite-0.1.1 spec/support/database_cleaner.rb
socialite-0.1.0.pre.7 spec/support/database_cleaner.rb
socialite-0.1.0.pre.6 spec/support/database_cleaner.rb
socialite-0.1.0.pre.5 spec/support/database_cleaner.rb
socialite-0.1.0.pre.4 spec/support/database_cleaner.rb
socialite-0.1.0.pre.3 spec/support/database_cleaner.rb
socialite-0.1.0.pre.2 spec/support/database_cleaner.rb