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 spec referring to non existing class which zeitwerk tried to autoload
Damian Legawiec3e1c12a22353
diff --git a/core/spec/models/spree/adjustable/adjuster/promotion_spec.rb b/core/spec/models/spree/adjustable/adjuster/promotion_spec.rbindex 1034e556a5..3c37e23ebf 100644--- a/core/spec/models/spree/adjustable/adjuster/promotion_spec.rb+++ b/core/spec/models/spree/adjustable/adjuster/promotion_spec.rb@@ -1,5 +1,9 @@require 'spec_helper'+class CustomPromotionAction < Spree::PromotionAction+ include Spree::AdjustmentSource+end+describe Spree::Adjustable::Adjuster::Promotion, type: :model dolet(:order) { create :order_with_line_items, line_items_count: 1 }let(:line_item) { order.line_items.first }@@ -22,13 +26,13 @@ describe Spree::Adjustable::Adjuster::Promotion, type: :model doenddescribe 'competing promos' do- before { Spree::Adjustment.competing_promos_source_types = ['Spree::PromotionAction', 'Custom'] }+ before { Spree::Adjustment.competing_promos_source_types = ['Spree::PromotionAction', 'CustomPromotionAction'] }it 'do not update promo_total' docreate(:adjustment,order: order,adjustable: line_item,- source_type: 'Custom',+ source_type: 'CustomPromotionAction',source_id: nil,amount: -3.50,label: 'Other',