1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-06-14 23:37:33 +00:00
parent 4515005155
commit b135b8d084

View file

@ -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