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:
parent
4515005155
commit
b135b8d084
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue