diff --git a/activesupport/test/test_case_test.rb b/activesupport/test/test_case_test.rb index 20982d089dbf722a91bd6dd4081df785de0cfc4e..e5b5547478945fe1315970e41eae00c59da647a9 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