Skip to content
Browse files

Wipe those tears.. References [4335].

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 942132b commit f9f65433efa18969b81ec1a8ab8d74d01bfd464e @jeremy jeremy committed May 12, 2006
Showing with 8 additions and 16 deletions.
  1. +8 −16 activerecord/test/migration_test.rb
View
24 activerecord/test/migration_test.rb
@@ -120,14 +120,16 @@ def test_create_table_with_defaults
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 @@ def test_create_table_with_limits
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

0 comments on commit f9f6543

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