Skip to content

Commit

Permalink
spec_helper: don't try to remove /tmp
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
terceiro authored and ddollar committed Apr 12, 2024
1 parent 4693875 commit 0ebcb08
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0ebcb08

Please sign in to comment.