Sha256: 165b9aff10237c316f70cc1591e0ca4213bba10d32e9569eea90770f0906f665

Contents?: true

Size: 677 Bytes

Versions: 33

Compression:

Stored size: 677 Bytes

Contents

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

module Propono
  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

33 entries across 33 versions & 1 rubygems

Version Path
propono-3.0.0 test/logger_test.rb
propono-2.2.1 test/logger_test.rb
propono-2.2.0 test/logger_test.rb
propono-2.1.0 test/logger_test.rb
propono-2.0.0 test/logger_test.rb
propono-2.0.0.rc3 test/logger_test.rb
propono-2.0.0.rc2 test/logger_test.rb
propono-2.0.0.rc1 test/logger_test.rb
propono-1.7.0 test/logger_test.rb
propono-1.6.0 test/logger_test.rb
propono-1.5.0 test/logger_test.rb
propono-1.4.0 test/logger_test.rb
propono-1.3.0 test/logger_test.rb
propono-1.2.0 test/logger_test.rb
propono-1.1.3 test/logger_test.rb
propono-1.1.2 test/logger_test.rb
propono-1.1.1 test/logger_test.rb
propono-1.1.0 test/logger_test.rb
propono-1.0.0 test/logger_test.rb
propono-1.0.0.rc3 test/logger_test.rb