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:
parent
9af991392c
commit
e62af8b1cf
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user