diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/pathname/test_pathname.rb | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Thu Sep 4 20:22:14 2014 Laurent Arnoud <laurent@spkdev.net> + + * test/pathname/test_pathname.rb: added testcase for Pathname#mountpoint. + [fix GH-709] + Thu Sep 4 20:09:21 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> * 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" |