提交 8ffa695c 编写于 作者: R rohit 提交者: José Valim

Failing test for GeneratedAttribute [#5461 state:open]

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 1503e45e
......@@ -108,4 +108,16 @@ def test_reference_is_false
)
end
end
def test_nil_type_raises_exception
assert_raise Thor::Error do
create_generated_attribute(nil, 'title')
end
end
def test_missing_type_raises_exception
assert_raise Thor::Error do
create_generated_attribute(:'', 'title')
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册