diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-27 16:48:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-27 16:48:18 +0000 |
commit | f79ddbebe390cd4216bfe35e2b33aae764dee648 (patch) | |
tree | 0290753d9c2fb1db190379dec70d314181cc28ca | |
parent | 462804fce43b15d0ffda8d37a0eee66d33b78246 (diff) | |
download | ruby-f79ddbebe390cd4216bfe35e2b33aae764dee648.tar.gz |
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
-rw-r--r-- | test/ruby/test_method.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |