From b135b8d084063598f8603b675a933d13f9874624 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 14 Jun 2013 23:37:33 +0000 Subject: [PATCH] test_method.rb: use realpath * test/ruby/test_method.rb (TestMethod#test___dir__): $LOAD_PATH entries are expanded to real paths. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index b46d67c9fa..6faf564546 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -544,7 +544,7 @@ class TestMethod < Test::Unit::TestCase 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