提交 3d87d01d 编写于 作者: B Brian Cardarella 提交者: Xavier Noria

Resolve warnings by instantizing @attrubtes as nil

上级 75981554
......@@ -113,6 +113,7 @@ def test_respond_to_with_allocated_object
# by inspecting it.
def test_allocated_object_can_be_inspected
topic = Topic.allocate
topic.instance_eval { @attributes = nil }
assert_nothing_raised { topic.inspect }
assert topic.inspect, "#<Topic not initialized>"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册