diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-10 07:51:35 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-10 07:51:35 +0000 |
commit | 4707fdea0171aab43a1178d4344725d8ca145ada (patch) | |
tree | a9aeecfff79835c0c6d9dee91a591122a6ebfdd4 /test/ruby/test_super.rb | |
parent | a5ddc2e1966a6a3af5653b1af45ccb379e346414 (diff) |
* vm_insnhelper.c (vm_search_super_method): raise a TypeError
instead of a NotImplementError if self is not an instance of the
current class. [ruby-dev:39772] [Bug #2402]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_super.rb')
-rw-r--r-- | test/ruby/test_super.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_super.rb b/test/ruby/test_super.rb index bb1d46c636..9505dccdd1 100644 --- a/test/ruby/test_super.rb +++ b/test/ruby/test_super.rb @@ -265,7 +265,7 @@ class TestSuper < Test::Unit::TestCase end } obj = sub_class.new - assert_raise(NotImplementedError) do + assert_raise(TypeError) do obj.foo end end @@ -285,7 +285,7 @@ class TestSuper < Test::Unit::TestCase end } obj = sub_class.new - assert_raise(NotImplementedError) do + assert_raise(TypeError) do obj.foo end end @@ -321,7 +321,7 @@ class TestSuper < Test::Unit::TestCase end } obj = sub_class.new - assert_raise(NotImplementedError) do + assert_raise(TypeError) do obj.foo.call end end |