From 596cd3f6e7416d44f31331c316ee77be06ce6ea4 Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Mon, 26 Aug 2013 22:14:13 +0900 Subject: add Exception#backtrace test --- test/t/exception.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/t/exception.rb b/test/t/exception.rb index 96b369e93..4239cba8b 100644 --- a/test/t/exception.rb +++ b/test/t/exception.rb @@ -335,3 +335,13 @@ end assert('Exception#inspect without message') do Exception.new.inspect end + +assert('Exception#backtrace') do + begin + raise "get backtrace" + rescue => e + e.backtrace + end + + true +end -- cgit v1.2.3