public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
Test for tinyint
jeremy (author)
Mon Jun 23 23:42:06 -0700 2008
commit  f6520b7dc7e460c62ba36dc761e39480bf77fe83
tree    6d779bd26ee691444946dbb14390a0f7a20977cc
parent  b40947432540ad29abacaad9d9254bf70048190d
...
175
176
177
178
 
179
180
181
...
175
176
177
 
178
179
180
181
0
@@ -175,7 +175,7 @@ if ActiveRecord::Base.connection.supports_migrations?
0
         assert_equal 'bigint', eight.sql_type
0
       elsif current_adapter?(:MysqlAdapter)
0
         assert_match /^int\(\d+\)/, default.sql_type
0
- assert_match /^smallint\(\d+\)/, one.sql_type
0
+ assert_match /^tinyint\(\d+\)/, one.sql_type
0
         assert_match /^int\(\d+\)/, four.sql_type
0
         assert_match /^bigint\(\d+\)/, eight.sql_type
0
       elsif current_adapter?(:OracleAdapter)
...
90
91
92
93
 
94
95
96
...
90
91
92
 
93
94
95
96
0
@@ -90,7 +90,7 @@ class SchemaDumperTest < ActiveRecord::TestCase
0
       assert_match %r{c_int_4.*}, output
0
       assert_no_match %r{c_int_4.*:limit}, output
0
     elsif current_adapter?(:MysqlAdapter)
0
- assert_match %r{c_int_1.*:limit => 2}, output
0
+ assert_match %r{c_int_1.*:limit => 1}, output
0
       assert_match %r{c_int_2.*:limit => 2}, output
0
       assert_match %r{c_int_3.*:limit => 3}, output
0
 

Comments

    No one has commented yet.