Sha256: c8b6e57437e75ca6ff20bd22cb862d2dda881393f880083a79cbb3c97bdceff1
Contents?: true
Size: 857 Bytes
Versions: 11
Compression:
Stored size: 857 Bytes
Contents
require 'assert' require 'qs/logger' class Qs::Logger class UnitTests < Assert::Context desc "Qs::Logger" setup do @real_logger = Factory.string end subject{ Qs::Logger } should "set its loggers correctly in summary mode" do logger = subject.new(@real_logger, false) assert_equal @real_logger, logger.summary assert_instance_of Qs::NullLogger, logger.verbose end should "set its loggers correctly in verbose mode" do logger = subject.new(@real_logger, true) assert_instance_of Qs::NullLogger, logger.summary assert_equal @real_logger, logger.verbose end end class NullLoggerTests < Assert::Context desc "Qs::NullLogger" setup do @null_logger = Qs::NullLogger.new end subject{ @null_logger } should have_imeths :debug, :info, :error end end
Version data entries
11 entries across 11 versions & 1 rubygems