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.0 spec/support/002_database_cleaner.rb
simple-sql-0.4.32 spec/support/002_database_cleaner.rb
simple-sql-0.4.31 spec/support/002_database_cleaner.rb
simple-sql-0.4.30 spec/support/002_database_cleaner.rb
simple-sql-0.4.29 spec/support/002_database_cleaner.rb
simple-sql-0.4.28 spec/support/002_database_cleaner.rb
simple-sql-0.4.27 spec/support/002_database_cleaner.rb
simple-sql-0.4.26 spec/support/002_database_cleaner.rb
simple-sql-0.4.25 spec/support/002_database_cleaner.rb
simple-sql-0.4.24 spec/support/002_database_cleaner.rb
simple-sql-0.4.23 spec/support/002_database_cleaner.rb
simple-sql-0.4.22 spec/support/002_database_cleaner.rb
simple-sql-0.4.21 spec/support/002_database_cleaner.rb
simple-sql-0.4.20 spec/support/002_database_cleaner.rb
simple-sql-0.4.19 spec/support/002_database_cleaner.rb
simple-sql-0.4.18 spec/support/002_database_cleaner.rb
simple-sql-0.4.17 spec/support/002_database_cleaner.rb
simple-sql-0.4.16 spec/support/002_database_cleaner.rb
simple-sql-0.4.15 spec/support/002_database_cleaner.rb
simple-sql-0.4.14 spec/support/002_database_cleaner.rb