diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-05-12 05:15:17 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-05-12 05:15:17 +0000 |
commit | f9f65433efa18969b81ec1a8ab8d74d01bfd464e (patch) | |
tree | c54dd1950c38b5dca20c7457923746e65ac6a195 | |
parent | 942132bda297eb5c54823fd63f4d5480c3309604 (diff) | |
download | rails-f9f65433efa18969b81ec1a8ab8d74d01bfd464e.tar.gz rails-f9f65433efa18969b81ec1a8ab8d74d01bfd464e.tar.bz2 rails-f9f65433efa18969b81ec1a8ab8d74d01bfd464e.zip |
Wipe those tears.. References [4335].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | activerecord/test/migration_test.rb | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/activerecord/test/migration_test.rb b/activerecord/test/migration_test.rb index 9f1f39736e..5714f539ca 100644 --- a/activerecord/test/migration_test.rb +++ b/activerecord/test/migration_test.rb @@ -120,14 +120,16 @@ if ActiveRecord::Base.connection.supports_migrations? end def test_create_table_with_limits - Person.connection.create_table :testings do |t| - t.column :foo, :string, :limit => 255 + assert_nothing_raised do + Person.connection.create_table :testings do |t| + t.column :foo, :string, :limit => 255 - t.column :default_int, :integer + t.column :default_int, :integer - t.column :one_int, :integer, :limit => 1 - t.column :four_int, :integer, :limit => 4 - t.column :eight_int, :integer, :limit => 8 + t.column :one_int, :integer, :limit => 1 + t.column :four_int, :integer, :limit => 4 + t.column :eight_int, :integer, :limit => 8 + end end columns = Person.connection.columns(:testings) @@ -144,16 +146,6 @@ if ActiveRecord::Base.connection.supports_migrations? assert_equal 'smallint', one.sql_type assert_equal 'integer', four.sql_type assert_equal 'bigint', eight.sql_type - elsif current_adapter?(:MysqlAdapter) - assert_equal 'int(11)', default.sql_type - assert_equal 'int(1)', one.sql_type - assert_equal 'int(4)', four.sql_type - assert_equal 'int(8)', eight.sql_type - else - assert_equal 'integer', default.sql_type - assert_equal 'integer(1)', one.sql_type - assert_equal 'integer(4)', four.sql_type - assert_equal 'integer(8)', eight.sql_type end ensure Person.connection.drop_table :testings rescue nil |