Sha256: c088fc40468d0cb9f011eeac7bb9c6ee554a518fdc3a8ca0794c99ed23e47f0e

Contents?: true

Size: 680 Bytes

Versions: 30

Compression:

Stored size: 680 Bytes

Contents

require File.expand_path('../test_helper', __FILE__)

module Inquisitio
  class LoggerTest < Minitest::Test
    def setup
      super
      @logger = Logger.new
    end

    def test_debug
      $stdout.expects(:puts).with("foobar")
      @logger.debug "foobar"
    end

    def test_info
      $stdout.expects(:puts).with("foobar")
      @logger.info "foobar"
    end

    def test_warn
      $stdout.expects(:puts).with("foobar")
      @logger.warn "foobar"
    end

    def test_error
      $stderr.expects(:puts).with("foobar")
      @logger.error "foobar"
    end

    def test_fatal
      $stderr.expects(:puts).with("foobar")
      @logger.fatal "foobar"
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
inquisitio-2.1.2 test/logger_test.rb
inquisitio-2.1.1 test/logger_test.rb
inquisitio-2.1.0 test/logger_test.rb
inquisitio-2.0.0 test/logger_test.rb
inquisitio-1.5.0 test/logger_test.rb
inquisitio-1.4.1 test/logger_test.rb
inquisitio-1.4.0 test/logger_test.rb
inquisitio-1.3.1 test/logger_test.rb
inquisitio-1.3.0 test/logger_test.rb
inquisitio-1.2.4 test/logger_test.rb
inquisitio-1.2.3 test/logger_test.rb
inquisitio-1.2.2 test/logger_test.rb
inquisitio-1.2.1 test/logger_test.rb
inquisitio-1.2.0 test/logger_test.rb
inquisitio-1.1.2 test/logger_test.rb
inquisitio-1.1.1 test/logger_test.rb
inquisitio-1.1.0 test/logger_test.rb
inquisitio-1.0.0 test/logger_test.rb
inquisitio-0.2.0 test/logger_test.rb
inquisitio-0.1.7 test/logger_test.rb