aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathname/test_pathname.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathname/test_pathname.rb')
-rw-r--r--test/pathname/test_pathname.rb5
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"