Sha256: bb7eed35b1f5f23e36261c72583b9989da3b853f781518ec3db9b25035a9389e

Contents?: true

Size: 282 Bytes

Versions: 73

Compression:

Stored size: 282 Bytes

Contents

require "database_cleaner"

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

  config.around(:each) do |example|
    DatabaseCleaner.cleaning do
      example.run
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
simple-sql-0.5.14 spec/support/002_database_cleaner.rb
simple-sql-0.5.13 spec/support/002_database_cleaner.rb
simple-sql-0.5.12 spec/support/002_database_cleaner.rb
simple-sql-0.5.11 spec/support/002_database_cleaner.rb
simple-sql-0.5.10 spec/support/002_database_cleaner.rb
simple-sql-0.5.9 spec/support/002_database_cleaner.rb
simple-sql-0.5.8 spec/support/002_database_cleaner.rb
simple-sql-0.5.7 spec/support/002_database_cleaner.rb
simple-sql-0.5.6 spec/support/002_database_cleaner.rb
simple-sql-0.5.5 spec/support/002_database_cleaner.rb
simple-sql-0.5.4 spec/support/002_database_cleaner.rb
simple-sql-0.5.3 spec/support/002_database_cleaner.rb
simple-sql-0.4.41 spec/support/002_database_cleaner.rb
simple-sql-0.5.2 spec/support/002_database_cleaner.rb
simple-sql-0.4.40 spec/support/002_database_cleaner.rb
simple-sql-0.4.39 spec/support/002_database_cleaner.rb
simple-sql-0.4.38 spec/support/002_database_cleaner.rb
simple-sql-0.4.37 spec/support/002_database_cleaner.rb
simple-sql-0.4.36 spec/support/002_database_cleaner.rb
simple-sql-0.4.35 spec/support/002_database_cleaner.rb