diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-27 11:20:23 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-28 17:24:09 -0300 |
commit | 48601c27b7942a18482bc817321a1ce9effece20 (patch) | |
tree | 0ab1aa8408668e43987e9edf49fb2b5006cb17f3 /activerecord/test/cases | |
parent | 10e568577536460647f97dbcc5b9d1777937f5e8 (diff) | |
download | rails-48601c27b7942a18482bc817321a1ce9effece20.tar.gz rails-48601c27b7942a18482bc817321a1ce9effece20.tar.bz2 rails-48601c27b7942a18482bc817321a1ce9effece20.zip |
Merge pull request #6878 from masarakki/master
fix bug in limit of enum columns of mysql
Closes #6432
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/adapters/mysql/enum_test.rb | 10 | ||||
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/enum_test.rb | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/mysql/enum_test.rb b/activerecord/test/cases/adapters/mysql/enum_test.rb new file mode 100644 index 0000000000..40af317ad1 --- /dev/null +++ b/activerecord/test/cases/adapters/mysql/enum_test.rb @@ -0,0 +1,10 @@ +require "cases/helper" + +class MysqlEnumTest < ActiveRecord::TestCase + class EnumTest < ActiveRecord::Base + end + + def test_enum_limit + assert_equal 5, EnumTest.columns.first.limit + end +end diff --git a/activerecord/test/cases/adapters/mysql2/enum_test.rb b/activerecord/test/cases/adapters/mysql2/enum_test.rb new file mode 100644 index 0000000000..f3a05e48ad --- /dev/null +++ b/activerecord/test/cases/adapters/mysql2/enum_test.rb @@ -0,0 +1,10 @@ +require "cases/helper" + +class Mysql2EnumTest < ActiveRecord::TestCase + class EnumTest < ActiveRecord::Base + end + + def test_enum_limit + assert_equal 5, EnumTest.columns.first.limit + end +end |