search for: my_house_population

Displaying 1 result from an estimated 1 matches for "my_house_population".

2007 Nov 13
4
question about activerecord test_numeric_fields in base_test.rb
...test for activerecord called test_numeric_fields in base_test.rb. here''s the test def test_numeric_fields m = NumericData.new( :bank_balance => 1586.43, :big_bank_balance => BigDecimal("1000234000567.95"), :world_population => 6000000000, :my_house_population => 3 ) assert m.save m1 = NumericData.find(m.id) assert_not_nil m1 # As with migration_test.rb, we should make world_population >= 2**62 # to cover 64-bit platforms and test it is a Bignum, but the main thing # is that it''s an Integer. assert_kind_of...