From 150b235fb650f15277e99080bc639bc4b60e08ba Mon Sep 17 00:00:00 2001 From: Daniel Bovensiepen Date: Fri, 25 May 2012 14:01:14 +0800 Subject: Add Tests for all Exception classes, for false, true, Proc, Module, nil and Object --- test/t/runtimeerror.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/t/runtimeerror.rb (limited to 'test/t/runtimeerror.rb') diff --git a/test/t/runtimeerror.rb b/test/t/runtimeerror.rb new file mode 100644 index 000000000..b410dd64f --- /dev/null +++ b/test/t/runtimeerror.rb @@ -0,0 +1,15 @@ +## +# RuntimeError ISO Test + +assert('RuntimeError', '15.2.28') do + e2 = nil + begin + # this will cause an exception due to the wrong location + retry + rescue => e1 + e2 = e1 + end + + RuntimeError.class == Class and e2.class == RuntimeError +end + -- cgit v1.2.3