Skip to content
Browse files

make sure the test case name is nil

  • Loading branch information...
1 parent 056b838 commit f65559fcc2745afcbfc03dd8b25ec9187f162029 @tenderlove tenderlove committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 activesupport/test/test_case_test.rb
View
8 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

0 comments on commit f65559f

Please sign in to comment.
Something went wrong with that request. Please try again.