spec/sitehub/logging/log_wrapper_spec.rb in sitehub-0.4.2 vs spec/sitehub/logging/log_wrapper_spec.rb in sitehub-0.4.3
- old
+ new
@@ -1,11 +1,9 @@
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
@@ -17,17 +15,15 @@
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