mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
b549ced9ed
commit
d80282eecc
2 changed files with 10 additions and 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>
|
Thu Sep 4 20:09:21 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
* symbian/*: removed Symbian support.
|
* symbian/*: removed Symbian support.
|
||||||
|
|
|
@ -559,6 +559,11 @@ class TestPathname < Test::Unit::TestCase
|
||||||
assert_include([true, false], r)
|
assert_include([true, false], r)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_mountpoint_enoent
|
||||||
|
r = Pathname("/nonexistent").mountpoint?
|
||||||
|
assert_equal false, r
|
||||||
|
end
|
||||||
|
|
||||||
def test_destructive_update
|
def test_destructive_update
|
||||||
path = Pathname.new("a")
|
path = Pathname.new("a")
|
||||||
path.to_s.replace "b"
|
path.to_s.replace "b"
|
||||||
|
|
Loading…
Reference in a new issue