diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/fileutils/test_fileutils.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 00441a4cfb..0ff0aadca2 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -361,6 +361,11 @@ class TestFileUtils < Test::Unit::TestCase assert_raise(ArgumentError, bug3588) do cp_r 'tmp2', 'tmp2/new_tmp2' end + + bug12892 = '[ruby-core:77885] [Bug #12892]' + assert_raise(Errno::ENOENT, bug12892) do + cp_r 'non/existent', 'tmp' + end end def test_cp_r_symlink |