Skip to content

Commit f65559f

Browse files
committed
make sure the test case name is nil
1 parent 056b838 commit f65559f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

activesupport/test/test_case_test.rb

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ def options
2020

2121
def test_callback_with_exception
2222
tc = Class.new(TestCase) do
23+
def self.name
24+
nil
25+
end
26+
2327
setup :bad_callback
2428
def bad_callback; raise 'oh noes' end
2529
def test_true; assert true end
@@ -39,6 +43,10 @@ def test_true; assert true end
3943

4044
def test_teardown_callback_with_exception
4145
tc = Class.new(TestCase) do
46+
def self.name
47+
nil
48+
end
49+
4250
teardown :bad_callback
4351
def bad_callback; raise 'oh noes' end
4452
def test_true; assert true end

0 commit comments

Comments
 (0)