提交 e722fbb5 编写于 作者: D dmathieu 提交者: Damien Mathieu

remove the warning when testing whiny_nil

上级 31536855
......@@ -33,11 +33,10 @@ def test_array
end
def test_id
nil.stubs(:object_id).returns(999)
nil.id
rescue RuntimeError => nme
assert_no_match(/nil:NilClass/, nme.message)
assert_match(/999/, nme.message)
assert_match(Regexp.new(nil.object_id.to_s), nme.message)
end
def test_no_to_ary_coercion
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册