Skip to content
Browse files

Test for tinyint

  • Loading branch information...
1 parent fe81af7 commit 6051249f4cd934bdc1d6cf9f06eb7f6c6ab5da64 @jeremy jeremy committed Jun 23, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 activerecord/test/cases/migration_test.rb
  2. +1 −1 activerecord/test/cases/schema_dumper_test.rb
View
2 activerecord/test/cases/migration_test.rb
@@ -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)
View
2 activerecord/test/cases/schema_dumper_test.rb
@@ -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

0 comments on commit 6051249

Please sign in to comment.
Something went wrong with that request. Please try again.