aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_method.rb2
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