diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-14 23:37:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-14 23:37:33 +0000 |
commit | b135b8d084063598f8603b675a933d13f9874624 (patch) | |
tree | 252c27f934461f840a6309fb9b1634f66284a881 /test | |
parent | 45150051552031a6ea7a9f3373aa4f80749eca1a (diff) | |
download | ruby-b135b8d084063598f8603b675a933d13f9874624.tar.gz |
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
Diffstat (limited to 'test')
-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 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 |