1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

rake should run active_schema_mysql_test.rb (closes #5390)

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4549 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2006-07-05 02:30:37 +00:00
parent 080e169751
commit 73c80169c8

View file

@ -17,11 +17,11 @@ class ActiveSchemaTest < Test::Unit::TestCase
end
def test_add_column
assert_equal "ALTER TABLE people ADD last_name varchar(255)", add_column(:people, :last_name, :string)
assert_equal "ALTER TABLE people ADD `last_name` varchar(255)", add_column(:people, :last_name, :string)
end
def test_add_column_with_limit
assert_equal "ALTER TABLE people ADD key varchar(32)", add_column(:people, :key, :string, :limit => 32)
assert_equal "ALTER TABLE `people` ADD key varchar(32)", add_column(:people, :key, :string, :limit => 32)
end
private