aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration_test.rb
diff options
context:
space:
mode:
authorTarmo Tänav <tarmo@itech.ee>2008-08-26 13:06:49 +0300
committerMichael Koziarski <michael@koziarski.com>2008-08-26 12:11:01 +0200
commitce3c76de7c0deda08a5ed0e064b8d37c26b60cfc (patch)
treeba758f79a30423cf6eb499b414f79919de92ed81 /activerecord/test/cases/migration_test.rb
parente06878c22bad83c234f5c51644c45629de876b25 (diff)
downloadrails-ce3c76de7c0deda08a5ed0e064b8d37c26b60cfc.tar.gz
rails-ce3c76de7c0deda08a5ed0e064b8d37c26b60cfc.tar.bz2
rails-ce3c76de7c0deda08a5ed0e064b8d37c26b60cfc.zip
Just look at sql_type when testing that the correct database-specific type was used
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activerecord/test/cases/migration_test.rb')
-rw-r--r--activerecord/test/cases/migration_test.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 9639588ef2..c1a8da2270 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -442,10 +442,7 @@ if ActiveRecord::Base.connection.supports_migrations?
ActiveRecord::Migration.add_column :people, :intelligence_quotient, :tinyint
Person.reset_column_information
- Person.create :intelligence_quotient => 300
- jonnyg = Person.find(:first)
- assert_equal 127, jonnyg.intelligence_quotient
- jonnyg.destroy
+ assert_match /tinyint/, Person.columns_hash['intelligence_quotient'].sql_type
ensure
ActiveRecord::Migration.remove_column :people, :intelligence_quotient rescue nil
end