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

test refactor

上级 711097e6
......@@ -712,12 +712,9 @@ def test_bulk_update_respects_access_control
end
def test_bulk_update_raise_unknown_attribute_errro
error = nil
begin
error = assert_raises(ActiveRecord::UnknownAttributeError) {
@target.new(:hello => "world")
rescue ActiveRecord::UnknownAttributeError => error
end
assert error
}
assert @target, error.record
assert "hello", error.attribute
assert "unknown attribute: hello", error.message
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册