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.2.13 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.12 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.11 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.10 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.9 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.8 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.7 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.6 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.5 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.4 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.3 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.2 spec/unit/lib/itamae/logger_spec.rb
itamae-1.2.0 spec/unit/lib/itamae/logger_spec.rb
itamae-1.1.26 spec/unit/lib/itamae/logger_spec.rb
itamae-1.1.25 spec/unit/lib/itamae/logger_spec.rb
itamae-1.1.24 spec/unit/lib/itamae/logger_spec.rb
itamae-1.1.23 spec/unit/lib/itamae/logger_spec.rb
itamae-1.1.22 spec/unit/lib/itamae/logger_spec.rb
itamae-1.1.21 spec/unit/lib/itamae/logger_spec.rb
itamae-1.1.20 spec/unit/lib/itamae/logger_spec.rb