Sha256: ea6c51eeb5de07b76536d1fdb1094f280dd0ea3e1077ae22e86971035a279c54

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

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)
      lines = File.readlines(Filum.logger.logfile)
      assert lines.grep(regex).size == 1, "Pattern (#{regex}) was not found in \n#{lines.join}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
filum-2.2.1 test/integration/logger_test.rb
filum-2.2.0 test/integration/logger_test.rb