Skip to content
This repository
Browse code

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...
commit ce3c76de7c0deda08a5ed0e064b8d37c26b60cfc 1 parent e06878c
Tarmo Tänav tarmo authored NZKoz committed

Showing 1 changed file with 1 addition and 4 deletions. Show diff stats Hide diff stats

  1. +1 4 activerecord/test/cases/migration_test.rb
5 activerecord/test/cases/migration_test.rb
@@ -442,10 +442,7 @@ def test_unabstracted_database_dependent_types
442 442
443 443 ActiveRecord::Migration.add_column :people, :intelligence_quotient, :tinyint
444 444 Person.reset_column_information
445   - Person.create :intelligence_quotient => 300
446   - jonnyg = Person.find(:first)
447   - assert_equal 127, jonnyg.intelligence_quotient
448   - jonnyg.destroy
  445 + assert_match /tinyint/, Person.columns_hash['intelligence_quotient'].sql_type
449 446 ensure
450 447 ActiveRecord::Migration.remove_column :people, :intelligence_quotient rescue nil
451 448 end

0 comments on commit ce3c76d

Please sign in to comment.
Something went wrong with that request. Please try again.