diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-02-17 13:35:23 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-02-17 13:35:23 -0700 |
commit | 1455c4c22feb24b0ff2cbb191afb0bd98ebf7b06 (patch) | |
tree | 563934e8d0a050c4bc01079aca604941c27682f2 /activerecord/test/cases/adapters/postgresql/array_test.rb | |
parent | 4a3cb840b0c992b0f15b66274dfa7de71a38fa03 (diff) | |
download | rails-1455c4c22feb24b0ff2cbb191afb0bd98ebf7b06.tar.gz rails-1455c4c22feb24b0ff2cbb191afb0bd98ebf7b06.tar.bz2 rails-1455c4c22feb24b0ff2cbb191afb0bd98ebf7b06.zip |
`type_cast_for_database` -> `serialize`
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/array_test.rb')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/array_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/array_test.rb b/activerecord/test/cases/adapters/postgresql/array_test.rb index eaab9ad685..f7552842cc 100644 --- a/activerecord/test/cases/adapters/postgresql/array_test.rb +++ b/activerecord/test/cases/adapters/postgresql/array_test.rb @@ -206,7 +206,7 @@ class PostgresqlArrayTest < ActiveRecord::TestCase x = PgArray.create!(tags: tags) x.reload - assert_equal x.tags_before_type_cast, PgArray.type_for_attribute('tags').type_cast_for_database(tags) + assert_equal x.tags_before_type_cast, PgArray.type_for_attribute('tags').serialize(tags) end def test_quoting_non_standard_delimiters @@ -214,8 +214,8 @@ class PostgresqlArrayTest < ActiveRecord::TestCase comma_delim = OID::Array.new(ActiveRecord::Type::String.new, ',') semicolon_delim = OID::Array.new(ActiveRecord::Type::String.new, ';') - assert_equal %({"hello,",world;}), comma_delim.type_cast_for_database(strings) - assert_equal %({hello,;"world;"}), semicolon_delim.type_cast_for_database(strings) + assert_equal %({"hello,",world;}), comma_delim.serialize(strings) + assert_equal %({hello,;"world;"}), semicolon_delim.serialize(strings) end def test_mutate_array |