diff options
| author | mirichi <[email protected]> | 2013-06-22 08:06:48 +0900 |
|---|---|---|
| committer | mirichi <[email protected]> | 2013-06-22 08:06:48 +0900 |
| commit | a01845b502a902ee1de2f34645177e64fafbb551 (patch) | |
| tree | 86d9a57bc44974d111dabb5e46d4f3e89ffe026d /test/t/nomethoderror.rb | |
| parent | a5f63e486473595d67601851f00b6bb96b377a8d (diff) | |
| parent | 8cb730ae4e63a953819023a2e31265d758b9fe42 (diff) | |
| download | mruby-a01845b502a902ee1de2f34645177e64fafbb551.tar.gz mruby-a01845b502a902ee1de2f34645177e64fafbb551.zip | |
Merge remote-tracking branch 'remotes/mruby/master'
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 - |
