Sha256: 90ab4b7e11ce81512079b5de00195f15caa9fead12fe1266bbf74bee936679ed

Contents?: true

Size: 282 Bytes

Versions: 4

Compression:

Stored size: 282 Bytes

Contents

require 'spec_helper'

RSpec.describe Dry::Monitor::Logger do
  subject(:logger) do
    Dry::Monitor::Logger.new($stdout)
  end

  describe '#info' do
    it 'outputs with configured formatter' do
      expect { logger.info('test') }.to output("test\n").to_stdout
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dry-monitor-0.1.0 spec/integration/logger_spec.rb
dry-monitor-0.0.3 spec/integration/logger_spec.rb
dry-monitor-0.0.2 spec/integration/logger_spec.rb
dry-monitor-0.0.1 spec/integration/logger_spec.rb