From 8d407b1dc971a021e88c0fc5e2edd8f2a03be429 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Sun, 15 Jun 2025 18:19:46 +0500 Subject: [PATCH] Fix lint issues --- lib/reporting/line_items.rb | 7 ++++++- .../having_producer_products/hub_actions_spec.rb | 12 ++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/lib/reporting/line_items.rb b/lib/reporting/line_items.rb index 6b0750ab0d..1fa5cb56c5 100644 --- a/lib/reporting/line_items.rb +++ b/lib/reporting/line_items.rb @@ -17,7 +17,12 @@ module Reporting def list(line_item_includes = [variant: [:supplier, :product]]) line_items = order_permissions.visible_line_items.in_orders(orders.result) - .order("supplier.name", "product.name", "spree_variants.display_name", "spree_variants.unit_description") + .order( + "supplier.name", + "product.name", + "spree_variants.display_name", + "spree_variants.unit_description" + ) if @params[:supplier_id_in].present? line_items = line_items.supplied_by_any(@params[:supplier_id_in]) diff --git a/spec/system/admin/orders/having_producer_products/hub_actions_spec.rb b/spec/system/admin/orders/having_producer_products/hub_actions_spec.rb index fbba03a01e..5358745720 100644 --- a/spec/system/admin/orders/having_producer_products/hub_actions_spec.rb +++ b/spec/system/admin/orders/having_producer_products/hub_actions_spec.rb @@ -2,7 +2,10 @@ require 'system_helper' -RSpec.describe 'As a hub (producer seller) who have the ability to update orders having their products' do +RSpec.describe ' + As a hub (producer seller) who have the ability to update + orders having their products +' do include AdminHelper include AuthenticationHelper include WebHelper @@ -11,7 +14,12 @@ RSpec.describe 'As a hub (producer seller) who have the ability to update orders let!(:hub1_v1) { create(:variant, supplier_id: hub1.id) } let!(:hub1_v2) { create(:variant, supplier_id: hub1.id) } let(:order_cycle) do - create(:simple_order_cycle, distributors: [distributor], variants: [hub1_v1, hub1_v2], coordinator: distributor) + create( + :simple_order_cycle, + distributors: [distributor], + variants: [hub1_v1, hub1_v2], + coordinator: distributor + ) end let!(:order_containing_hub1_products) do o = create(