Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix caching specs to work with Rails 7.1

Rafal Cymerys671ade8954d9
diff --git a/api/spec/requests/spree/api/v2/caching_spec.rb b/api/spec/requests/spree/api/v2/caching_spec.rb
index 4f15942920..64d264ea52 100644
--- a/api/spec/requests/spree/api/v2/caching_spec.rb
+++ b/api/spec/requests/spree/api/v2/caching_spec.rb
@@ -29,7 +29,9 @@ describe 'API v2 Caching spec', type: :request do
end
def cache_entries
- Rails.cache.redis.keys.find_all { |k| k.start_with?(cache_namespace) }
+ Rails.cache.redis.with do |redis|
+ redis.keys.find_all { |k| k.start_with?(cache_namespace) }
+ end
end
it 'caches collection' do