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: filter table spec depended on test order

Damian Legawiec04851ee9396f
diff --git a/spree/api/spec/services/spree/api/v3/filter_table_spec.rb b/spree/api/spec/services/spree/api/v3/filter_table_spec.rb
index 6728ed6d24..321e1dc2e7 100644
--- a/spree/api/spec/services/spree/api/v3/filter_table_spec.rb
+++ b/spree/api/spec/services/spree/api/v3/filter_table_spec.rb
@@ -2,6 +2,9 @@ require 'spec_helper'
require 'spree/api/openapi/filter_documentation'
RSpec.describe Spree::Api::V3::FilterTable do
+ # Tables are cached per process; another spec in the same worker may have
+ # built one already.
+ before { described_class.reset! }
after { described_class.reset! }
describe 'every list endpoint' do