From d80282eecce4d2b6a7c3f419659d6e4d8eecb536 Mon Sep 17 00:00:00 2001 From: hsbt Date: Thu, 4 Sep 2014 11:22:20 +0000 Subject: * 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 --- ChangeLog | 5 +++++ test/pathname/test_pathname.rb | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index e535185183..099deb099c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 4 20:22:14 2014 Laurent Arnoud + + * test/pathname/test_pathname.rb: added testcase for Pathname#mountpoint. + [fix GH-709] + Thu Sep 4 20:09:21 2014 SHIBATA Hiroshi * symbian/*: removed Symbian support. 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" -- cgit v1.2.3