diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-06-16 04:42:58 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-06-16 04:42:58 -0700 |
| commit | d60362b38bad741a03f03c9a25b6694286c44211 (patch) | |
| tree | decde0f21c76dbb5a686d9874dc27886215b55c5 /test/t/nomethoderror.rb | |
| parent | 8dcbf5e4ac09b23b02ca76d727a91136c3a7b3cd (diff) | |
| parent | 1a6731fbdeb2642d95aeeddc2e8bee5a288d5f2e (diff) | |
| download | mruby-d60362b38bad741a03f03c9a25b6694286c44211.tar.gz mruby-d60362b38bad741a03f03c9a25b6694286c44211.zip | |
Merge pull request #1284 from Bovi-Li/improve-test-2
Improve Test Infrastructure (Part 2)
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 - |
