Sha256: 94038cf6b4c96746337f361893d39a2bcb09c4def85436c218a26faa8f2b9b8a

Contents?: true

Size: 144 Bytes

Versions: 6

Compression:

Stored size: 144 Bytes

Contents

DatabaseCleaner[:active_record].strategy = :truncation

module Minitest
  class Test
    setup do
      DatabaseCleaner.clean
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
minitest-utils-0.4.4 lib/minitest/utils/setup/database_cleaner.rb
minitest-utils-0.4.3 lib/minitest/utils/setup/database_cleaner.rb
minitest-utils-0.4.2 lib/minitest/utils/setup/database_cleaner.rb
minitest-utils-0.4.1 lib/minitest/utils/setup/database_cleaner.rb
minitest-utils-0.4.0 lib/minitest/utils/setup/database_cleaner.rb
minitest-utils-0.3.1 lib/minitest/utils/setup/database_cleaner.rb