Sha256: 79750f68bf5d1bd68e38e22cd087d5eaf51f4009ba1599665abff8cf0dea1b79

Contents?: true

Size: 175 Bytes

Versions: 4

Compression:

Stored size: 175 Bytes

Contents

# frozen_string_literal: true

DatabaseCleaner[:active_record].strategy = :truncation

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
minitest-utils-0.4.8 lib/minitest/utils/setup/database_cleaner.rb
minitest-utils-0.4.7 lib/minitest/utils/setup/database_cleaner.rb
minitest-utils-0.4.6 lib/minitest/utils/setup/database_cleaner.rb
minitest-utils-0.4.5 lib/minitest/utils/setup/database_cleaner.rb