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:
parent
462804fce4
commit
f79ddbebe3
@ -553,7 +553,7 @@ class TestMethod < Test::Unit::TestCase
|
|||||||
|
|
||||||
def test___dir__
|
def test___dir__
|
||||||
assert_instance_of String, __dir__
|
assert_instance_of String, __dir__
|
||||||
assert_equal(File.dirname(__FILE__), __dir__)
|
assert_equal(File.expand_path("..", __FILE__), __dir__)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_alias_owner
|
def test_alias_owner
|
||||||
|
Loading…
x
Reference in New Issue
Block a user