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 factory name
Damian Legawiec067a13862a31
diff --git a/core/spec/models/spree/page_section_spec.rb b/core/spec/models/spree/page_section_spec.rbindex 6c9f9f94a1..bfe7ee9abe 100644--- a/core/spec/models/spree/page_section_spec.rb+++ b/core/spec/models/spree/page_section_spec.rb@@ -10,7 +10,7 @@ RSpec.describe Spree::PageSection, type: :model doexpect(homepage.sections).to be_blankexpect(homepage.sections.with_deleted).to be_present- create_list(:featured_taxon, 4, pageable: homepage)+ create_list(:featured_taxon_section, 4, pageable: homepage)expect(homepage.reload.sections.pluck(:position)).to match_array([1, 2, 3, 4])endenddiff --git a/core/spec/models/spree/taxon_spec.rb b/core/spec/models/spree/taxon_spec.rbindex 352e699f82..6a7813b458 100644--- a/core/spec/models/spree/taxon_spec.rb+++ b/core/spec/models/spree/taxon_spec.rb@@ -788,8 +788,8 @@ describe Spree::Taxon, type: :model dolet(:taxon) { create(:taxon) }- let!(:featured_sections) { create_list(:featured_taxon, 2, preferred_taxon_id: featured_taxon.id) }- let!(:other_featured_sections) { create_list(:featured_taxon, 2, preferred_taxon_id: create(:taxon).id) }+ let!(:featured_sections) { create_list(:featured_taxon_section, 2, preferred_taxon_id: featured_taxon.id) }+ let!(:other_featured_sections) { create_list(:featured_taxon_section, 2, preferred_taxon_id: create(:taxon).id) }context 'with featured sections' dolet(:featured_taxon) { taxon }