Sha256: 2be83476de184c7b52d433f4a260c5b92cd3a269bc0ad5af125d7a15dc647d40

Contents?: true

Size: 450 Bytes

Versions: 78

Compression:

Stored size: 450 Bytes

Contents

require 'spec_helper'

class Hiera
  describe Console_logger do
    describe "#warn" do
      it "should warn to STDERR" do
        STDERR.expects(:puts).with("WARN: 0: foo")
        Time.expects(:now).returns(0)
        Console_logger.warn("foo")
      end

      it "should debug to STDERR" do
        STDERR.expects(:puts).with("DEBUG: 0: foo")
        Time.expects(:now).returns(0)
        Console_logger.debug("foo")
      end
    end
  end
end

Version data entries

78 entries across 78 versions & 2 rubygems

Version Path
hiera-3.12.0 spec/unit/console_logger_spec.rb
hiera-3.11.0 spec/unit/console_logger_spec.rb
hiera-3.10.0 spec/unit/console_logger_spec.rb
hiera-3.9.0 spec/unit/console_logger_spec.rb
hiera-3.8.0 spec/unit/console_logger_spec.rb
hiera-3.7.0 spec/unit/console_logger_spec.rb
hiera-3.6.0 spec/unit/console_logger_spec.rb
hiera-3.4.6 spec/unit/console_logger_spec.rb
hiera-3.5.0 spec/unit/console_logger_spec.rb
hiera-3.4.5 spec/unit/console_logger_spec.rb
hiera-3.4.4 spec/unit/console_logger_spec.rb
hiera-3.3.3 spec/unit/console_logger_spec.rb
hiera-3.4.3 spec/unit/console_logger_spec.rb
hiera-3.4.2 spec/unit/console_logger_spec.rb
hiera-3.4.1 spec/unit/console_logger_spec.rb
hiera-3.4.0 spec/unit/console_logger_spec.rb
hiera-3.3.1 spec/unit/console_logger_spec.rb
hiera-3.3.1-x86-mingw32 spec/unit/console_logger_spec.rb
hiera-3.3.1-x64-mingw32 spec/unit/console_logger_spec.rb
hiera-3.3.0 spec/unit/console_logger_spec.rb