require_relative 'integration_test_base' module Filum class LoggerTest < Minitest::Test include IntegrationTestBase protected def setup super Filum.setup("/tmp/log/filum_test_#{Time.now.to_i}.log") end def assert_logged(regex) assert File.readlines(Filum.logger.logfile).grep(regex).size == 1 end end end