1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_pathname.rb: fix exception

* test/pathname/test_pathname.rb (has_symlink): now raises ENOENT
  instead of TypeError when symlink is available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-08-29 05:19:49 +00:00
parent 123a1e3cc1
commit c5b0dc63de

View file

@ -342,7 +342,7 @@ class TestPathname < Test::Unit::TestCase
File.symlink("", "")
rescue NotImplementedError, Errno::EACCES
return false
rescue TypeError
rescue Errno::ENOENT
end
return true
end