diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-04 11:22:20 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-04 11:22:20 +0000 |
commit | d80282eecce4d2b6a7c3f419659d6e4d8eecb536 (patch) | |
tree | 269556b9d73b202876fa456daecfcde8d32fc767 /test/pathname | |
parent | b549ced9ed7e02ab87a8a75a85a002d4bb8e8b99 (diff) |
* test/pathname/test_pathname.rb: added testcase for Pathname#mountpoint.
[fix GH-709]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r-- | test/pathname/test_pathname.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 98d321f1d1..75040431d1 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -559,6 +559,11 @@ class TestPathname < Test::Unit::TestCase assert_include([true, false], r) end + def test_mountpoint_enoent + r = Pathname("/nonexistent").mountpoint? + assert_equal false, r + end + def test_destructive_update path = Pathname.new("a") path.to_s.replace "b" |