public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Just look at sql_type when testing that the correct database-specific type was 
used

Signed-off-by: Michael Koziarski <michael@koziarski.com>
Tarmo Tänav (author)
Tue Aug 26 03:06:49 -0700 2008
NZKoz (committer)
Tue Aug 26 03:11:01 -0700 2008
commit  ce3c76de7c0deda08a5ed0e064b8d37c26b60cfc
tree    ba758f79a30423cf6eb499b414f79919de92ed81
parent  e06878c22bad83c234f5c51644c45629de876b25
...
442
443
444
445
446
447
448
 
449
450
451
...
442
443
444
 
 
 
 
445
446
447
448
0
@@ -442,10 +442,7 @@ if ActiveRecord::Base.connection.supports_migrations?
0
 
0
         ActiveRecord::Migration.add_column :people, :intelligence_quotient, :tinyint
0
         Person.reset_column_information
0
-        Person.create :intelligence_quotient => 300
0
-        jonnyg = Person.find(:first)
0
-        assert_equal 127, jonnyg.intelligence_quotient
0
-        jonnyg.destroy
0
+        assert_match /tinyint/, Person.columns_hash['intelligence_quotient'].sql_type
0
       ensure
0
         ActiveRecord::Migration.remove_column :people, :intelligence_quotient rescue nil
0
       end

Comments