Sha256: 2f6e7834253eebeb3ffe809858775824e262cf7d4297154ae1569efb12b85930

Contents?: true

Size: 298 Bytes

Versions: 8

Compression:

Stored size: 298 Bytes

Contents

require "database_cleaner"

RSpec.configure do |config|
  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

8 entries across 8 versions & 2 rubygems

Version Path
garage-doorkeeper-2.0.0 spec/support/database_cleaner.rb
garage-doorkeeper-1.0.0 spec/support/database_cleaner.rb
doorkeeper-0.4.2 spec/support/dependencies/database_cleaner.rb
doorkeeper-0.4.1 spec/support/dependencies/database_cleaner.rb
doorkeeper-0.4.0 spec/support/dependencies/database_cleaner.rb
doorkeeper-0.3.4 spec/support/dependencies/database_cleaner.rb
doorkeeper-0.3.3 spec/support/dependencies/database_cleaner.rb
doorkeeper-0.3.2 spec/support/dependencies/database_cleaner.rb