From 1987f0b6672cfed9f67fd874b59f07adabf08ed3 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Mon, 15 Sep 2025 11:57:33 +0500 Subject: [PATCH] Remove redundant SQL string checks in product sorting specs for clarity --- spec/models/spree/product_sort_by_stocks_spec.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/spec/models/spree/product_sort_by_stocks_spec.rb b/spec/models/spree/product_sort_by_stocks_spec.rb index 701ce46927..573fea404e 100644 --- a/spec/models/spree/product_sort_by_stocks_spec.rb +++ b/spec/models/spree/product_sort_by_stocks_spec.rb @@ -8,10 +8,7 @@ RSpec.describe 'ProductSortByStocks' do describe 'class level SQL accessors' do it 'exposes SQL Arel nodes for sorting' do expect(Spree::Product.on_hand_sql).to be_a(Arel::Nodes::SqlLiteral) - expect(Spree::Product.on_hand_sql.to_s).to include('SELECT COALESCE(SUM') - expect(Spree::Product.backorderable_priority_sql).to be_a(Arel::Nodes::SqlLiteral) - expect(Spree::Product.backorderable_priority_sql.to_s).to include('CASE WHEN') end end