diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-25 16:44:08 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-09-10 08:44:50 +0000 |
| commit | a79907ed5e8014215a658f4731ff33df3aca9eaa (patch) | |
| tree | b7bc521c3b2bed99e0951246b57f281b3c42c53a /test | |
| parent | 3231ac6008bdcfe605b97bf09d79b3e58a2e58a3 (diff) | |
[ruby/tmpdir] Reject empty parent path
https://github.com/ruby/tmpdir/commit/628c5bdc59
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_tmpdir.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_tmpdir.rb b/test/test_tmpdir.rb index 054ca15d7a..eae0610c87 100644 --- a/test/test_tmpdir.rb +++ b/test/test_tmpdir.rb @@ -104,6 +104,12 @@ class TestTmpdir < Test::Unit::TestCase end end + def test_mktmpdir_not_empty_parent + assert_raise(ArgumentError) do + Dir.mktmpdir("foo", "") + end + end + def assert_mktmpdir_traversal Dir.mktmpdir do |target| target = target.chomp('/') + '/' |
