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

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
This commit is contained in:
nobu 2013-05-27 16:48:18 +00:00
parent 462804fce4
commit f79ddbebe3

View file

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