Module: DatabaseCleanerSupport

Included in:
ActionDispatch::IntegrationTest, ActiveSupport::TestCase
Defined in:
lib/kowl/templates/tests/minitest/support/database_cleaner_support.rb

Overview

Instance Method Summary collapse

Instance Method Details

#after_teardownObject



11
12
13
14
# File 'lib/kowl/templates/tests/minitest/support/database_cleaner_support.rb', line 11

def after_teardown
  DatabaseCleaner.clean
  super
end

#before_setupObject



6
7
8
9
# File 'lib/kowl/templates/tests/minitest/support/database_cleaner_support.rb', line 6

def before_setup
  super
  DatabaseCleaner.start
end