Permalink
Browse files

Just look at sql_type when testing that the correct database-specific…

… type was used

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
1 parent e06878c commit ce3c76de7c0deda08a5ed0e064b8d37c26b60cfc @tarmo tarmo committed with NZKoz Aug 26, 2008
Showing with 1 addition and 4 deletions.
  1. +1 −4 activerecord/test/cases/migration_test.rb
View
5 activerecord/test/cases/migration_test.rb
@@ -442,10 +442,7 @@ def test_unabstracted_database_dependent_types
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

0 comments on commit ce3c76d

Please sign in to comment.