mirror of
https://github.com/meineerde/rackstash.git
synced 2026-02-20 10:21:59 +00:00
Remove unused variable in specs
This commit is contained in:
parent
5f68082810
commit
ec30779429
@ -69,7 +69,7 @@ describe Rackstash::BufferStack do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'always returns nil' do
|
it 'always returns nil' do
|
||||||
new_buffer = stack.push
|
stack.push
|
||||||
expect(stack.flush_and_pop).to be nil
|
expect(stack.flush_and_pop).to be nil
|
||||||
expect(stack.flush_and_pop).to be nil
|
expect(stack.flush_and_pop).to be nil
|
||||||
end
|
end
|
||||||
|
|||||||
@ -202,11 +202,8 @@ describe Rackstash::Logger do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'formats the message' do
|
it 'formats the message' do
|
||||||
time = Time.now
|
|
||||||
formatter = double('formatter')
|
formatter = double('formatter')
|
||||||
|
|
||||||
logger.formatter = formatter
|
logger.formatter = formatter
|
||||||
|
|
||||||
expect(formatter).to receive(:call)
|
expect(formatter).to receive(:call)
|
||||||
.with('DEBUG', instance_of(Time), Rackstash::PROGNAME, 'Hello World')
|
.with('DEBUG', instance_of(Time), Rackstash::PROGNAME, 'Hello World')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user