Sha256: 9a9c01f57ad46f7163204091ea243951bafca89ecff408c6e16e40ffb4695c36

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

require 'spec_helper'

describe LoGspot do
  let(:filename) { File.expand_path('../../tmp/spec.log', __FILE__) }
  let(:logger) { LoGspot.new(filename) }
  let(:read) { -> { File.read(filename) } }

  describe '#write' do
    it 'should output' do
      logger.info('test')
      expect(read.call).to include 'test'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logspot-0.2.0 spec/logspot_spec.rb