Sha256: cb4344648c181108da9aa34c36242a01a61407ac3bc38f2d8c919b0c0d279120

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

require 'helper'
require 'oas/log_collector/log_file'
require 'date'

class TestLogFile < MiniTest::Unit::TestCase
  def setup
    @timestamp = Time.mktime(2012,8,1,15,30).to_i
  end

  def test_parse_on_initialize
    logfile = OAS::LogCollector::LogFile.new("adstream.log.#{@timestamp}.bz2")
    assert_equal @timestamp, logfile.timestamp
    assert_equal "2012", logfile.year
    assert_equal "08", logfile.month
    assert_equal "01", logfile.day
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oas-log-collector-0.1.6 test/test_log_file.rb