提交 f6520b7d 编写于 作者: J Jeremy Kemper

Test for tinyint

上级 b4094743
......@@ -175,7 +175,7 @@ def test_create_table_with_limits
assert_equal 'bigint', eight.sql_type
elsif current_adapter?(:MysqlAdapter)
assert_match /^int\(\d+\)/, default.sql_type
assert_match /^smallint\(\d+\)/, one.sql_type
assert_match /^tinyint\(\d+\)/, one.sql_type
assert_match /^int\(\d+\)/, four.sql_type
assert_match /^bigint\(\d+\)/, eight.sql_type
elsif current_adapter?(:OracleAdapter)
......
......@@ -90,7 +90,7 @@ def test_schema_dump_includes_limit_constraint_for_integer_columns
assert_match %r{c_int_4.*}, output
assert_no_match %r{c_int_4.*:limit}, output
elsif current_adapter?(:MysqlAdapter)
assert_match %r{c_int_1.*:limit => 2}, output
assert_match %r{c_int_1.*:limit => 1}, output
assert_match %r{c_int_2.*:limit => 2}, output
assert_match %r{c_int_3.*:limit => 3}, output
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册