diff options
| author | yui-knk <[email protected]> | 2014-05-09 23:40:41 +0900 |
|---|---|---|
| committer | yui-knk <[email protected]> | 2014-05-09 23:40:41 +0900 |
| commit | faee6987464691436818e6f6b5757634ccbff98d (patch) | |
| tree | cda4526687c861c4dfb8917ae04ba1e69b28914e /test/t/exception.rb | |
| parent | 64b30b65ee3f6787978dcd336e0c2490e290a3af (diff) | |
| download | mruby-faee6987464691436818e6f6b5757634ccbff98d.tar.gz mruby-faee6987464691436818e6f6b5757634ccbff98d.zip | |
Refactoring test to use assert_nothing_raised.
Diffstat (limited to 'test/t/exception.rb')
| -rw-r--r-- | test/t/exception.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb index 0ce742527..c670d15cd 100644 --- a/test/t/exception.rb +++ b/test/t/exception.rb @@ -345,13 +345,13 @@ assert('Exception#inspect without message') do end assert('Exception#backtrace') do - begin - raise "get backtrace" - rescue => e - e.backtrace + assert_nothing_raised do + begin + raise "get backtrace" + rescue => e + e.backtrace + end end - - true end assert('Raise in ensure') do |
