summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_method.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 1546e15107..688386774c 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -505,7 +505,9 @@ class TestMethod < Test::Unit::TestCase
def test___dir__
assert_instance_of String, __dir__
- assert_equal(File.dirname(__FILE__), __dir__)
+ assert_equal(File.dirname(File.realpath(__FILE__)), __dir__)
+ bug8436 = '[ruby-core:55123] [Bug #8436]'
+ assert_equal(__dir__, eval("__dir__", binding), bug8436)
end
def test_alias_owner