diff options
| author | Daniel Bovensiepen <[email protected]> | 2013-06-14 22:17:40 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2013-06-14 22:17:40 +0800 |
| commit | f2013337f4b12cba0c7c1938c3241d39d2792f9e (patch) | |
| tree | 09a348b08ada18ed4184d148d567b4bd570e1e50 | |
| parent | 9bf797acf75cd34bbbfd1e07aa4e860892c10a7d (diff) | |
| download | mruby-f2013337f4b12cba0c7c1938c3241d39d2792f9e.tar.gz mruby-f2013337f4b12cba0c7c1938c3241d39d2792f9e.zip | |
Improve NoMethodError Tests
| -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 - |
