diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-23 16:16:16 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-23 16:16:16 -0700 |
commit | 7a69e27cdef97159464d76cf93a52f2ee16af010 (patch) | |
tree | 80369abd5cdf097d021b8f32f50aeb797401f706 | |
parent | 8c83bd0732fc526e69cd5c348cb9d9842ae60c99 (diff) | |
download | rails-7a69e27cdef97159464d76cf93a52f2ee16af010.tar.gz rails-7a69e27cdef97159464d76cf93a52f2ee16af010.tar.bz2 rails-7a69e27cdef97159464d76cf93a52f2ee16af010.zip |
Fix test failure on PG caused by 7c6f3938dee47f093
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/type_lookup_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/type_lookup_test.rb b/activerecord/test/cases/adapters/postgresql/type_lookup_test.rb index c88259d274..4506e874bc 100644 --- a/activerecord/test/cases/adapters/postgresql/type_lookup_test.rb +++ b/activerecord/test/cases/adapters/postgresql/type_lookup_test.rb @@ -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 |