Skip to content

Commit c4e090d

Browse files
committed
test_commit_email.rb: Clean up temporary files
1 parent f8a333a commit c4e090d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tool/test/test_commit_email.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ def setup
2929
@commit_email = File.expand_path('../../tool/commit-email.rb', __dir__)
3030
end
3131

32+
def teardown
33+
File.unlink(@sendmail)
34+
Dir.rmdir(File.dirname(@sendmail))
35+
FileUtils.rm_rf(@ruby)
36+
end
37+
3238
def test_sendmail_encoding
3339
omit 'the sendmail script does not work on windows' if windows?
3440

0 commit comments

Comments
 (0)