diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-18 10:16:58 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-18 10:16:58 -0700 |
commit | 521035af530482d6d9ad2dae568eaeb0ab188e1c (patch) | |
tree | 1bc00d452ff3f0098f7cee4bc3dd94bfa681202a /activerecord/test/cases/adapters | |
parent | 222011dbee842bbc60d3aaaa3145356b90a30fd1 (diff) | |
parent | f6c4cded2f066db42ef83b30f6c353e2958f81fb (diff) | |
download | rails-521035af530482d6d9ad2dae568eaeb0ab188e1c.tar.gz rails-521035af530482d6d9ad2dae568eaeb0ab188e1c.tar.bz2 rails-521035af530482d6d9ad2dae568eaeb0ab188e1c.zip |
Merge pull request #10043 from cconstantine/master
DB with postgres string array column doesn't load fixtures well
Diffstat (limited to 'activerecord/test/cases/adapters')
-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 |