diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-06-16 20:44:22 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-06-16 20:44:22 +0900 |
| commit | ef5087bc9ad921e35b93b9d274c35518c0d94170 (patch) | |
| tree | f254dd3629ad56a19bf21ef9c4276dea62195c8c /test/t/nomethoderror.rb | |
| parent | 7ba2f8554629b8b0cf088ff7c7a2f33d31873e93 (diff) | |
| parent | 6025f2c4ba682e72882189ba03ed7b4ca46c6237 (diff) | |
| download | mruby-ef5087bc9ad921e35b93b9d274c35518c0d94170.tar.gz mruby-ef5087bc9ad921e35b93b9d274c35518c0d94170.zip | |
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'test/t/nomethoderror.rb')
| -rw-r--r-- | test/t/nomethoderror.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/t/nomethoderror.rb b/test/t/nomethoderror.rb index caab04a41..2b1ac8e88 100644 --- a/test/t/nomethoderror.rb +++ b/test/t/nomethoderror.rb @@ -2,17 +2,12 @@ # NoMethodError ISO Test assert('NoMethodError', '15.2.32') do - e2 = nil - begin + NoMethodError.class == Class + assert_raise NoMethodError do doesNotExistAsAMethodNameForVerySure("") - rescue => e1 - e2 = e1 end - - NoMethodError.class == Class and e2.class == NoMethodError end assert('NoMethodError superclass', '15.2.32.2') do - NoMethodError.superclass == NameError + assert_equal NoMethodError.superclass, NameError end - |
