From 0ebcb0826403eca0d28f5107c5ea461b70da0eff Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 25 Feb 2021 11:13:38 -0300 Subject: [PATCH] spec_helper: don't try to remove /tmp The FakeFS spec helper already cleans up the filesystem after each test. Also, that after helper is executed after FakeFS already deactivated itself, so in some systems, that can cause the real /tmp to be removed if the user running the tests has permissions to do so. --- spec/spec_helper.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2934458a..87e68890 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -171,7 +171,4 @@ def capture_stdout config.before(:each) do FileUtils.mkdir_p('/tmp') end - config.after(:each) do - FileUtils.rm_rf('/tmp') - end end