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 flaky test

Damian Legawiecea55ba80b675
diff --git a/spree/admin/spec/controllers/spree/admin/classifications_controller_spec.rb b/spree/admin/spec/controllers/spree/admin/classifications_controller_spec.rb
index 654ee55ed6..bb4a8e66a9 100644
--- a/spree/admin/spec/controllers/spree/admin/classifications_controller_spec.rb
+++ b/spree/admin/spec/controllers/spree/admin/classifications_controller_spec.rb
@@ -33,7 +33,7 @@ RSpec.describe Spree::Admin::ClassificationsController, type: :controller do
end
context 'when sort_order is best_selling' do
- let(:sort_order) { 'best-selling' }
+ let(:sort_order) { 'best_selling' }
let!(:completed_order_1) { create(:completed_order_with_totals, variants: [product1.master, product2.master]) }
let!(:completed_order_2) { create(:completed_order_with_totals, variants: [product2.master]) }