From d0be5c2d4c317c3cd71cf438a704a3f79721367c Mon Sep 17 00:00:00 2001 From: nagachika Date: Sun, 30 Mar 2014 15:43:51 +0000 Subject: merge revision(s) r45360,r45361: [Backport #9651] * vm_eval.c (eval_string_with_cref): Use file path even if scope is given. Related to [ruby-core:56099] [Bug #8662] and r42103. * vm_eval.c (eval_string_with_cref): Unify to use NIL_P. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_method.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index f44f7e5bdb..7522a30886 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -550,6 +550,7 @@ class TestMethod < Test::Unit::TestCase assert_equal(__dir__, eval("__dir__", binding), bug8436) bug8662 = '[ruby-core:56099] [Bug #8662]' assert_equal("arbitrary", eval("__dir__", binding, "arbitrary/file.rb"), bug8662) + assert_equal("arbitrary", Object.new.instance_eval("__dir__", "arbitrary/file.rb"), bug8662) end def test_alias_owner -- cgit v1.2.3