diff options
author | Chris Constantine <cconstan@gmail.com> | 2013-04-07 01:44:53 -0700 |
---|---|---|
committer | Chris Constantine <cconstan@gmail.com> | 2013-04-08 09:55:26 -0700 |
commit | f6c4cded2f066db42ef83b30f6c353e2958f81fb (patch) | |
tree | bac27e90fe848f3a01241088c004b3bc79db69be /activerecord/test/cases | |
parent | 436d91869b7febc0030d79adea136add2f526e49 (diff) | |
download | rails-f6c4cded2f066db42ef83b30f6c353e2958f81fb.tar.gz rails-f6c4cded2f066db42ef83b30f6c353e2958f81fb.tar.bz2 rails-f6c4cded2f066db42ef83b30f6c353e2958f81fb.zip |
Fix loading of string arrays in postgres
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/array_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/array_test.rb b/activerecord/test/cases/adapters/postgresql/array_test.rb index 8774bf626f..5c629aed3d 100644 --- a/activerecord/test/cases/adapters/postgresql/array_test.rb +++ b/activerecord/test/cases/adapters/postgresql/array_test.rb @@ -81,6 +81,12 @@ class PostgresqlArrayTest < ActiveRecord::TestCase assert_cycle(['1',nil,nil]) end + def test_insert_fixture + tag_values = ["val1", "val2", "val3_with_quote_'_char"] + @connection.insert_fixture({"tags" => ["val1", "val2", "val3_with_quote_'_char"]}, "pg_arrays" ) + assert_equal(PgArray.last.tags, tag_values) + end + private def assert_cycle array # test creation |