From 01257196948765da2601c3a6c489f2a55f7319a8 Mon Sep 17 00:00:00 2001 From: ntalbott Date: Fri, 21 Nov 2003 22:36:13 +0000 Subject: * lib/test/unit/util/backtracefilter.rb: fixed a bug that occurred when an exception had no backtrace. * test/testunit/util/test_backtracefilter.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/testunit/util/test_backtracefilter.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/testunit') diff --git a/test/testunit/util/test_backtracefilter.rb b/test/testunit/util/test_backtracefilter.rb index eeabb91d22..d4e40ea6ab 100644 --- a/test/testunit/util/test_backtracefilter.rb +++ b/test/testunit/util/test_backtracefilter.rb @@ -32,7 +32,10 @@ backtrace = [%q{tc_thing.rb:4:in 'a'}, %q{C:\some\old\path\test\unit\testcase.rb:44:in 'run'}, %q{C:\some\old\path\test\unit.rb:44:in 'run'}] assert_equal(backtrace, filter_backtrace(backtrace, %q{C:\some\old\path\test\unit}), "Should filter out all TestUnit-specific lines") + end + def test_nil_backtrace + assert_equal(["No backtrace"], filter_backtrace(nil)) end end end -- cgit v1.2.3