diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-12-03 18:23:04 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-12-03 18:23:04 +0900 |
| commit | 144006a20e7d97733d682ff1502f24b032b3db59 (patch) | |
| tree | 7fa1f3b09ac0ffd3b44550a7e3478f3b5b1fc9fd /test/t | |
| parent | 8f510be21109ef52692bbca01b1868e6e247e40f (diff) | |
| download | mruby-144006a20e7d97733d682ff1502f24b032b3db59.tar.gz mruby-144006a20e7d97733d682ff1502f24b032b3db59.zip | |
update NoMethodError tests; ref #3291
Diffstat (limited to 'test/t')
| -rw-r--r-- | test/t/nomethoderror.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/nomethoderror.rb b/test/t/nomethoderror.rb index ce3514782..1c09bc20e 100644 --- a/test/t/nomethoderror.rb +++ b/test/t/nomethoderror.rb @@ -22,7 +22,7 @@ assert('NoMethodError#args', '15.2.32.2.1') do end assert('Can still raise when BasicObject#method_missing is removed') do - assert_raise(TypeError) do + assert_raise(NoMethodError) do begin BasicObject.alias_method(:old_method_missing, :method_missing) BasicObject.remove_method(:method_missing) @@ -35,7 +35,7 @@ assert('Can still raise when BasicObject#method_missing is removed') do end assert('Can still call super when BasicObject#method_missing is removed') do - assert_raise(TypeError) do + assert_raise(NoMethodError) do class A def foo super |
