Sha256: baab2fbbf856ffc5d462f7e27bff23a3a3d2191ba87ff14d54904dab3c0f0728
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Filum class FilumTest < Minitest::Test def test_initializer_stores_logfile logfile = "./log/test.log" logger = Filum::Logger.new(logfile) assert_equal logfile, logger.logfile end def test_initializer_proxies_to_formatter_correctly options = {foo: 'bar'} Filum::LogFormatter.expects(:new).with(options) Filum::Logger.new("./log/test.log", options) end def test_initializer_sets_level logger = Filum::Logger.new("./log/test.log") assert_equal Logger::INFO, logger.level end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
filum-2.2.1 | test/unit/logger_test.rb |
filum-2.2.0 | test/unit/logger_test.rb |
filum-2.1.0 | test/unit/logger_test.rb |
filum-2.0.0 | test/unit/logger_test.rb |