1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-02-01 01:37:12 +00:00

Fix warning in spec for Adapters::Logger

This fizes a Ruby warning generated when running the tests for
Rackstash::Adaptes::Logger. The warning was:

> warning: instance variable @closed not initialized
This commit is contained in:
Holger Just 2017-10-10 20:31:11 +02:00
parent 9af991392c
commit e62af8b1cf

View File

@ -13,6 +13,11 @@ require 'rackstash/adapters/logger'
describe Rackstash::Adapters::Logger do
let(:bucket) {
Struct.new(:lines) do
def initialize(*args)
super
@closed = false
end
def write(log)
raise IOError if @closed
lines << log