diff options
author | Luca Guidi <guidi.luca@gmail.com> | 2008-10-03 16:08:17 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-10-03 22:08:55 +0200 |
commit | 1bc267d21679408b3624d1c697656ec250c01972 (patch) | |
tree | 215ca0839ffea807b930a3dd3e29e5c48d5061f3 /activerecord/test/cases | |
parent | 7553a23c0a84424bdbc09cc81791f41bfebe1b25 (diff) | |
download | rails-1bc267d21679408b3624d1c697656ec250c01972.tar.gz rails-1bc267d21679408b3624d1c697656ec250c01972.tar.bz2 rails-1bc267d21679408b3624d1c697656ec250c01972.zip |
Make sure recreate MySQL test database with the proper encoding and collation [#1165 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1165 state:committed]
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/active_schema_test_mysql.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/active_schema_test_mysql.rb b/activerecord/test/cases/active_schema_test_mysql.rb index 2a42dc3517..9aff538ce9 100644 --- a/activerecord/test/cases/active_schema_test_mysql.rb +++ b/activerecord/test/cases/active_schema_test_mysql.rb @@ -25,6 +25,11 @@ class ActiveSchemaTest < ActiveRecord::TestCase assert_equal "CREATE DATABASE `aimonetti` DEFAULT CHARACTER SET `latin1`", create_database(:aimonetti, {:charset => 'latin1'}) assert_equal "CREATE DATABASE `matt_aimonetti` DEFAULT CHARACTER SET `big5` COLLATE `big5_chinese_ci`", create_database(:matt_aimonetti, {:charset => :big5, :collation => :big5_chinese_ci}) end + + def test_recreate_mysql_database_with_encoding + create_database(:luca, {:charset => 'latin1'}) + assert_equal "CREATE DATABASE `luca` DEFAULT CHARACTER SET `latin1`", recreate_database(:luca, {:charset => 'latin1'}) + end end def test_add_column |