require 'simplecov'
SimpleCov.start('rails')

ENV['RAILS_ENV'] = 'test'
require File.expand_path('../config/environment', __dir__)

require 'rails/test_help'
require 'database_cleaner'
require 'minitest/rails'
require 'minitest/reporters'
require 'minitest/pride'
require 'minitest/spec'
require 'minitest/autorun'
require 'minitest/mock'
require 'mocha/minitest'
require_relative './custom_assertions'

DatabaseCleaner.strategy = :transaction

module Minitest
  class Test
    include FactoryBot::Syntax::Methods

    def setup
      DatabaseCleaner.start
    end

    def teardown
      DatabaseCleaner.clean
    end
  end
end

Minitest::Reporters.use!([Minitest::Reporters::SpecReporter.new])

require 'simplecov'
SimpleCov.start('rails')

ENV['RAILS_ENV'] = 'test'
require File.expand_path('../config/environment', __dir__)

require 'rails/test_help'
require 'database_cleaner'
require 'minitest/rails'
require 'minitest/reporters'
require 'minitest/pride'
require 'minitest/spec'
require 'minitest/autorun'
require 'minitest/mock'
require 'mocha/minitest'
require_relative './custom_assertions'

DatabaseCleaner.strategy = :transaction

module Minitest
  class Test
    include FactoryBot::Syntax::Methods

    def setup
      DatabaseCleaner.start
    end

    def teardown
      DatabaseCleaner.clean
    end
  end
end

Minitest::Reporters.use!

Use default Minitest reported for more concise output
Use default Minitest reported for more concise output
