Sha256: b7c1ddb3f9f464279e9a4181c59c4bad97f7fdfbfee3e8932f852651a3106d20
Contents?: true
Size: 486 Bytes
Versions: 2
Compression:
Stored size: 486 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 describe '#value' do it 'should output' do logger.value(:info, test: 'test') expect(read.call).to include 'test: test' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
logspot-0.4.0 | spec/logspot_spec.rb |
logspot-0.3.0 | spec/logspot_spec.rb |