From fc6073bde47600940bebf6c793c1a6129cb7d744 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 3 Feb 2016 07:37:19 +0000 Subject: test_exception.rb: NameError at FCALL * test/ruby/test_exception.rb (test_name_error_info): add assertions for FCALL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_exception.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 91732dd062..8435c5a5ee 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -689,6 +689,12 @@ end.join assert_equal(:foo, e.name) assert_equal([1, 2], e.args) assert_same(obj, e.receiver) + e = assert_raise(NoMethodError) { + obj.instance_eval {foo(1, 2)} + } + assert_equal(:foo, e.name) + assert_equal([1, 2], e.args) + assert_same(obj, e.receiver) def obj.test(a, b=nil, *c, &d) e = a 1.times {|f| g = foo} -- cgit v1.2.3