Skip to content

Commit 2347422

Browse files
committed
Skip tests if adapter does not support insert_all/upsert_all
1 parent 7bb8fe2 commit 2347422

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

activerecord/test/cases/collection_cache_key_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class CollectionCacheKeyTest < ActiveRecord::TestCase
9797
end
9898

9999
test "insert_all will update cache_key" do
100+
skip unless supports_insert_on_duplicate_skip?
101+
100102
developers = Developer.all
101103
cache_key = developers.cache_key
102104

@@ -106,6 +108,8 @@ class CollectionCacheKeyTest < ActiveRecord::TestCase
106108
end
107109

108110
test "upsert_all will update cache_key" do
111+
skip unless supports_insert_on_duplicate_update?
112+
109113
developers = Developer.all
110114
cache_key = developers.cache_key
111115

0 commit comments

Comments
 (0)