From bdcb0856af896ae819a78fa81b74a547b5eea0c4 Mon Sep 17 00:00:00 2001 From: Feruz Oripov Date: Sat, 16 Mar 2024 19:23:17 +0500 Subject: [PATCH] Fix failed specs --- .../sales_tax/sales_tax_totals_by_producer_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/system/admin/reports/sales_tax/sales_tax_totals_by_producer_spec.rb b/spec/system/admin/reports/sales_tax/sales_tax_totals_by_producer_spec.rb index b1d319b887..da3244cef5 100644 --- a/spec/system/admin/reports/sales_tax/sales_tax_totals_by_producer_spec.rb +++ b/spec/system/admin/reports/sales_tax/sales_tax_totals_by_producer_spec.rb @@ -70,7 +70,7 @@ describe "Sales Tax Totals By Producer" do ship_address_id: ship_address.id }) - OrderWorkflow.new(order).complete! + Orders::WorkflowService.new(order).complete! end it "generates the report" do @@ -128,7 +128,7 @@ describe "Sales Tax Totals By Producer" do ship_address_id: ship_address.id }) - OrderWorkflow.new(order).complete! + Orders::WorkflowService.new(order).complete! end it 'generates the report' do @@ -177,7 +177,7 @@ describe "Sales Tax Totals By Producer" do ship_address_id: ship_address.id }) - OrderWorkflow.new(order).complete! + Orders::WorkflowService.new(order).complete! end it "generates the report" do login_as admin @@ -353,7 +353,7 @@ describe "Sales Tax Totals By Producer" do ship_address_id: customer1.bill_address_id, customer_id: customer1.id }) - OrderWorkflow.new(order).complete! + Orders::WorkflowService.new(order).complete! order2.line_items.create({ variant:, quantity: 1, price: 200 }) order2.update!({ @@ -361,7 +361,7 @@ describe "Sales Tax Totals By Producer" do ship_address_id: customer2.bill_address_id, customer_id: customer2.id }) - OrderWorkflow.new(order2).complete! + Orders::WorkflowService.new(order2).complete! login_as admin visit admin_reports_path click_on 'Sales Tax Totals By Producer'