From f65559fcc2745afcbfc03dd8b25ec9187f162029 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 6 Jan 2012 15:16:41 -0800 Subject: [PATCH] make sure the test case name is nil --- activesupport/test/test_case_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/activesupport/test/test_case_test.rb b/activesupport/test/test_case_test.rb index 20982d089d..e5b5547478 100644 --- a/activesupport/test/test_case_test.rb +++ b/activesupport/test/test_case_test.rb @@ -20,6 +20,10 @@ def options def test_callback_with_exception tc = Class.new(TestCase) do + def self.name + nil + end + setup :bad_callback def bad_callback; raise 'oh noes' end def test_true; assert true end @@ -39,6 +43,10 @@ def test_true; assert true end def test_teardown_callback_with_exception tc = Class.new(TestCase) do + def self.name + nil + end + teardown :bad_callback def bad_callback; raise 'oh noes' end def test_true; assert true end -- GitLab