diff options
author | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-21 22:36:13 +0000 |
---|---|---|
committer | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-21 22:36:13 +0000 |
commit | 01257196948765da2601c3a6c489f2a55f7319a8 (patch) | |
tree | a20ac6644bed7a9399e44513bf0abe35967b2eaa /test | |
parent | cf971d47b97844352faf31ae9da6f6806b3af7e1 (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.rb | 3 |
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 |