Sha256: 7934751a225229053675b785c777f8299d16b2d3a49908dbb708cf3fe5a9be77

Contents?: true

Size: 401 Bytes

Versions: 89

Compression:

Stored size: 401 Bytes

Contents

require 'spec_helper'

module Itamae
  describe Logger do
    let(:io) { StringIO.new }

    before do
      Logger.log_device = io
    end

    [:fatal, :error, :warn, :info, :debug].each do |level|
      describe "##{level}" do
        it "puts #{level} log" do
          Logger.public_send(level, "CONTENT")
          expect(io.string).to include('CONTENT')
        end
      end
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
itamae-1.4.5 spec/unit/lib/itamae/logger_spec.rb
itamae-1.4.4 spec/unit/lib/itamae/logger_spec.rb
itamae-1.4.3 spec/unit/lib/itamae/logger_spec.rb
itamae-1.4.2 spec/unit/lib/itamae/logger_spec.rb
itamae-1.4.1 spec/unit/lib/itamae/logger_spec.rb
itamae-1.4.0 spec/unit/lib/itamae/logger_spec.rb
itamae-1.3.6 spec/unit/lib/itamae/logger_spec.rb
itamae-1.3.5 spec/unit/lib/itamae/logger_spec.rb
itamae-1.3.4 spec/unit/lib/itamae/logger_spec.rb
itamae-1.3.3 spec/unit/lib/itamae/logger_spec.rb
itamae-1.3.2 spec/unit/lib/itamae/logger_spec.rb
itamae-1.3.1 spec/unit/lib/itamae/logger_spec.rb
itamae-1.3.0 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.21 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.19 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.18 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.17 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.16 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.15 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.14 spec/unit/lib/itamae/logger_spec.rb