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.

Fixed factory name

Damian Legawiec067a13862a31
diff --git a/core/spec/models/spree/page_section_spec.rb b/core/spec/models/spree/page_section_spec.rb
index 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 do
expect(homepage.sections).to be_blank
expect(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])
end
end
diff --git a/core/spec/models/spree/taxon_spec.rb b/core/spec/models/spree/taxon_spec.rb
index 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 do
let(: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' do
let(:featured_taxon) { taxon }