test_commit_email.rb: Clean up temporary files

This commit is contained in:
Nobuyoshi Nakada committed 2025-10-29 10:06:02 +09:00
1 parent f8a333ae19
commit c4e090def1
1 file changed
+6
+6
View File
@@ -29,6 +29,12 @@ class TestCommitEmail < Test::Unit::TestCase
@commit_email = File.expand_path('../../tool/commit-email.rb', __dir__)
end
def teardown
File.unlink(@sendmail)
Dir.rmdir(File.dirname(@sendmail))
FileUtils.rm_rf(@ruby)
end
def test_sendmail_encoding
omit 'the sendmail script does not work on windows' if windows?