summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-21 22:36:13 +0000
committerntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-21 22:36:13 +0000
commit01257196948765da2601c3a6c489f2a55f7319a8 (patch)
treea20ac6644bed7a9399e44513bf0abe35967b2eaa /test
parentcf971d47b97844352faf31ae9da6f6806b3af7e1 (diff)
* 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
Diffstat (limited to 'test')
-rw-r--r--test/testunit/util/test_backtracefilter.rb3
1 files changed, 3 insertions, 0 deletions
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