Sha256: ee8b098a762fc77be9749b2323c9de280c848269939cafa379538a7334f2401f
Contents?: true
Size: 764 Bytes
Versions: 2
Compression:
Stored size: 764 Bytes
Contents
require 'sitehub/logging/log_wrapper' class SiteHub module Logging describe LogWrapper do describe '#write' do let(:logger) { double('logger') } subject do described_class.new(logger) end context 'logger responds to <<' do it 'calls << when writing out the log' do message = 'message' expect(logger).to receive(:<<).with(message) subject.write(message) end end context 'logger responds to write' do it 'calls << when writing out the log' do message = 'message' expect(logger).to receive(:write).with(message) subject.write(message) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sitehub-0.4.2 | spec/sitehub/logging/log_wrapper_spec.rb |
sitehub-0.4.1 | spec/sitehub/logging/log_wrapper_spec.rb |