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