[前][次][番号順一覧][スレッド一覧]

ruby-changes:35303

From: hsbt <ko1@a...>
Date: Thu, 4 Sep 2014 20:22:27 +0900 (JST)
Subject: [ruby-changes:35303] hsbt:r47385 (trunk): * test/pathname/test_pathname.rb: added testcase for Pathname#mountpoint.

hsbt	2014-09-04 20:22:20 +0900 (Thu, 04 Sep 2014)

  New Revision: 47385

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47385

  Log:
    * test/pathname/test_pathname.rb: added testcase for Pathname#mountpoint.
      [fix GH-709]

  Modified files:
    trunk/ChangeLog
    trunk/test/pathname/test_pathname.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47384)
+++ ChangeLog	(revision 47385)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Sep  4 20:22:14 2014  Laurent Arnoud  <laurent@s...>
+
+	* test/pathname/test_pathname.rb: added testcase for Pathname#mountpoint.
+	  [fix GH-709]
+
 Thu Sep  4 20:09:21 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* symbian/*: removed Symbian support.
Index: test/pathname/test_pathname.rb
===================================================================
--- test/pathname/test_pathname.rb	(revision 47384)
+++ test/pathname/test_pathname.rb	(revision 47385)
@@ -559,6 +559,11 @@ class TestPathname < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/pathname/test_pathname.rb#L559
     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"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]