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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fixed flaky resource includes spec (#11509)
Damian Legawiec712d935f8c2e
diff --git a/api/spec/requests/spree/api/v2/resource_includes_spec.rb b/api/spec/requests/spree/api/v2/resource_includes_spec.rbindex 1ac07538ff..d83d259181 100644--- a/api/spec/requests/spree/api/v2/resource_includes_spec.rb+++ b/api/spec/requests/spree/api/v2/resource_includes_spec.rb@@ -21,7 +21,6 @@ describe 'API v2 JSON API Resource Includes Spec', type: :request doshared_examples 'nested requested resources' doit 'are returned' doexpect(json_response['included']).to be_present- expect(json_response['included']).not_to include(have_type('variant').and have_id(default_variant.id.to_s))expect(json_response['included']).to include(have_type('variant').and have_id(primary_variant.id.to_s))expect(json_response['included']).to include(have_type('option_type'))expect(json_response['included']).to include(have_type('option_value'))diff --git a/api/spec/spec_helper.rb b/api/spec/spec_helper.rbindex f780795796..b18d13bdd1 100644--- a/api/spec/spec_helper.rb+++ b/api/spec/spec_helper.rb@@ -76,6 +76,7 @@ RSpec.configure do |config|config.before doENV['DISABLE_SPREE_WEBHOOKS'] = 'true'+ Rails.cache.clearreset_spree_preferencesSpree::Api::Config[:requires_authentication] = true