Sha256: 21882c76b678664195251ec55109c70366a7f1be421444b96b595aa2b835f7ca

Contents?: true

Size: 470 Bytes

Versions: 3

Compression:

Stored size: 470 Bytes

Contents

require 'minarai/logger'
require 'ansi/code'

describe Minarai::Logger do
  describe 'logger' do
    subject { described_class }

    describe 'output $stdout some prefix and color' do
      it { expect { described_class.info('output') }.to output(ANSI.green("INFO : output\n")).to_stdout }
    end

    %i(skip done fail warn info error fatal).each do |method|
      it "have #{method} method" do
        is_expected.to be_respond_to method
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
minarai-0.0.3 spec/minarai/unit/logger_spec.rb
minarai-0.0.2 spec/minarai/unit/logger_spec.rb
minarai-0.0.1 spec/minarai/unit/logger_spec.rb