aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2018-01-24 21:47:15 +1030
committerGitHub <noreply@github.com>2018-01-24 21:47:15 +1030
commitbc26f303705d6202c1ba3d6b1a9cfd2160d74cd8 (patch)
treee770c420dbaa491fb0ec8976a4ba3363ce008656 /activerecord/test/cases/adapters/postgresql
parentcdb15ba7cd28a432b21821c2758c6c9d6970791c (diff)
parent1d04baafa6e79ec8892f9159784617dca8deea1e (diff)
downloadrails-bc26f303705d6202c1ba3d6b1a9cfd2160d74cd8.tar.gz
rails-bc26f303705d6202c1ba3d6b1a9cfd2160d74cd8.tar.bz2
rails-bc26f303705d6202c1ba3d6b1a9cfd2160d74cd8.zip
Merge pull request #31422 from Edouard-chin/multistatement-fixtures
Build a multi-statement query when inserting fixtures
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql')
-rw-r--r--activerecord/test/cases/adapters/postgresql/array_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/array_test.rb b/activerecord/test/cases/adapters/postgresql/array_test.rb
index 0e9e86f425..7eecd5bc35 100644
--- a/activerecord/test/cases/adapters/postgresql/array_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/array_test.rb
@@ -228,7 +228,9 @@ class PostgresqlArrayTest < ActiveRecord::PostgreSQLTestCase
def test_insert_fixtures
tag_values = ["val1", "val2", "val3_with_'_multiple_quote_'_chars"]
- @connection.insert_fixtures([{ "tags" => tag_values }], "pg_arrays")
+ assert_deprecated do
+ @connection.insert_fixtures([{ "tags" => tag_values }], "pg_arrays")
+ end
assert_equal(PgArray.last.tags, tag_values)
end