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.0.0.beta43 spec/unit/lib/itamae/logger_spec.rb
itamae-1.0.0.beta42 spec/unit/lib/itamae/logger_spec.rb
itamae-1.0.0.beta41 spec/unit/lib/itamae/logger_spec.rb
itamae-1.0.0.beta40 spec/unit/lib/itamae/logger_spec.rb
itamae-1.0.0.beta39 spec/unit/lib/itamae/logger_spec.rb
itamae-1.0.0.beta38 spec/unit/lib/itamae/logger_spec.rb
itamae-1.0.0.beta37 spec/unit/lib/itamae/logger_spec.rb
itamae-1.0.0.beta36 spec/unit/lib/itamae/logger_spec.rb
itamae-1.0.0.beta35 spec/unit/lib/itamae/logger_spec.rb