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

Explicitly remove temporary files in specs

This commit is contained in:
Holger Just 2017-07-27 13:32:53 +02:00
parent 9ae14f068d
commit 68d674668a

View File

@ -83,6 +83,10 @@ RSpec.describe Rackstash::Adapter::File do
expect(adapter.base_path).to eql File.join(base, 'dir', 'sub', 'test.log')
expect(File.directory?(File.join(base, 'dir'))).to be true
expect(File.file?(File.join(base, 'dir', 'sub', 'test.log'))).to be true
# cleanup
adapter.close
FileUtils.rm_rf Dir[File.join(base, '*')]
end
end