提交 731c7f9b 编写于 作者: R Ryuta Kamizono

Add an extra assertion to ensure dumping schema default as expected

上级 90dd63ac
......@@ -80,7 +80,10 @@ def test_add_column_with_default_array
column = UUIDType.columns_hash["thingy"]
assert column.array?
assert [], column.default
assert_equal "{}", column.default
schema = dump_table_schema "uuid_data_type"
assert_match %r{t\.uuid "thingy", default: \[\], array: true$}, schema
end
def test_data_type_of_uuid_types
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册