Skip to content

Commit 0ebcb08

Browse files
terceiroddollar
authored andcommitted
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.
1 parent 4693875 commit 0ebcb08

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

spec/spec_helper.rb

-3
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,4 @@ def capture_stdout
171171
config.before(:each) do
172172
FileUtils.mkdir_p('/tmp')
173173
end
174-
config.after(:each) do
175-
FileUtils.rm_rf('/tmp')
176-
end
177174
end

0 commit comments

Comments
 (0)