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

ruby-changes:29253

From: nobu <ko1@a...>
Date: Sat, 15 Jun 2013 08:37:43 +0900 (JST)
Subject: [ruby-changes:29253] nobu:r41305 (trunk): test_method.rb: use realpath

nobu	2013-06-15 08:37:33 +0900 (Sat, 15 Jun 2013)

  New Revision: 41305

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

  Log:
    test_method.rb: use realpath
    
    * test/ruby/test_method.rb (TestMethod#test___dir__): $LOAD_PATH
      entries are expanded to real paths.

  Modified files:
    trunk/test/ruby/test_method.rb

Index: test/ruby/test_method.rb
===================================================================
--- test/ruby/test_method.rb	(revision 41304)
+++ test/ruby/test_method.rb	(revision 41305)
@@ -544,7 +544,7 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L544
 
   def test___dir__
     assert_instance_of String, __dir__
-    assert_equal(File.expand_path("..", __FILE__), __dir__)
+    assert_equal(File.dirname(File.realpath(__FILE__)), __dir__)
   end
 
   def test_alias_owner

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

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