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

Remove unused variable in specs

This commit is contained in:
Holger Just 2017-05-04 21:38:56 +02:00
parent 5f68082810
commit ec30779429
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -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')