提交 f65559fc 编写于 作者: A Aaron Patterson

make sure the test case name is nil

上级 056b8386
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册