Sha256: f7dcaff180cba9f4bbc318bd47482d9d5015326472d738f864e40fac78d4b752
Contents?: true
Size: 584 Bytes
Versions: 4
Compression:
Stored size: 584 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Filum class FilumTest < Minitest::Test def test_setup_proxies_correctly logfile = "foobar" options = {foo: 'bar'} Filum::Logger.expects(:new).with(logfile, options) Filum.setup(logfile, options) end def test_logger_returns_logger logfile = "./log/test.log" logger = Filum.setup(logfile) assert_equal logger, Filum.logger end def test_call_to_loquor_without_setup_raises assert_raises(FilumError) do Filum.logger end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
filum-2.2.1 | test/unit/filum_test.rb |
filum-2.2.0 | test/unit/filum_test.rb |
filum-2.1.0 | test/unit/filum_test.rb |
filum-2.0.0 | test/unit/filum_test.rb |