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.4.13 spec/support/002_database_cleaner.rb
simple-sql-0.4.12 spec/support/002_database_cleaner.rb
simple-sql-0.4.11 spec/support/002_database_cleaner.rb
simple-sql-0.4.10 spec/support/002_database_cleaner.rb
simple-sql-0.4.9 spec/support/002_database_cleaner.rb
simple-sql-0.4.8 spec/support/002_database_cleaner.rb
simple-sql-0.4.7 spec/support/002_database_cleaner.rb
simple-sql-0.4.5 spec/support/002_database_cleaner.rb
simple-sql-0.4.4 spec/support/002_database_cleaner.rb
simple-sql-0.4.3 spec/support/002_database_cleaner.rb
simple-sql-0.4.2 spec/support/002_database_cleaner.rb
simple-sql-0.4.1 spec/support/002_database_cleaner.rb
simple-sql-0.4.0 spec/support/002_database_cleaner.rb
simple-sql-0.3.7 spec/support/002_database_cleaner.rb
simple-sql-0.3.6 spec/support/002_database_cleaner.rb
simple-sql-0.3.5 spec/support/002_database_cleaner.rb
simple-sql-0.3.4 spec/support/002_database_cleaner.rb
simple-sql-0.3.3 spec/support/002_database_cleaner.rb
simple-sql-0.2.10 spec/support/002_database_cleaner.rb
simple-sql-0.3.2 spec/support/002_database_cleaner.rb