From f79ddbebe390cd4216bfe35e2b33aae764dee648 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 27 May 2013 16:48:18 +0000 Subject: [PATCH] test_method.rb: fix for direct invocation * test/ruby/test_method.rb (TestMethod#test___dir__): use aboslute path for the case invoked directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40966 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 8fd7de823c..ca790dfd12 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -553,7 +553,7 @@ class TestMethod < Test::Unit::TestCase def test___dir__ assert_instance_of String, __dir__ - assert_equal(File.dirname(__FILE__), __dir__) + assert_equal(File.expand_path("..", __FILE__), __dir__) end def test_alias_owner