1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix test failure on PG caused by 7c6f3938de

This commit is contained in:
Sean Griffin 2015-01-23 16:16:16 -07:00
parent 8c83bd0732
commit 7a69e27cde

View file

@ -18,8 +18,8 @@ class PostgresqlTypeLookupTest < ActiveRecord::TestCase
bigint_array = @connection.type_map.lookup(1016, -1, "bigint[]")
big_array = [123456789123456789]
assert_raises(RangeError) { int_array.type_cast_from_user(big_array) }
assert_equal big_array, bigint_array.type_cast_from_user(big_array)
assert_raises(RangeError) { int_array.type_cast_for_database(big_array) }
assert_equal "{123456789123456789}", bigint_array.type_cast_for_database(big_array)
end
test "range types correctly respect registration of subtypes" do