From 8e0bde11277259a2ee6e55782912178ccd6d19f9 Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Tue, 9 Dec 2025 17:41:31 +0000 Subject: [PATCH] CLDC-3501: Reinstate skipped managing org rake test the log can never be completed as it is missing info --- spec/lib/tasks/set_sales_managing_organisation_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/lib/tasks/set_sales_managing_organisation_spec.rb b/spec/lib/tasks/set_sales_managing_organisation_spec.rb index 657befe84..314dcb19e 100644 --- a/spec/lib/tasks/set_sales_managing_organisation_spec.rb +++ b/spec/lib/tasks/set_sales_managing_organisation_spec.rb @@ -14,13 +14,13 @@ RSpec.describe "set_sales_managing_organisation" do context "when the rake task is run" do let!(:sales_log) { create(:sales_log, :completed, managing_organisation_id: nil) } - xit "updates sales log managing_organisation_id with owning_organisation_id" do + it "updates sales log managing_organisation_id with owning_organisation_id" do expect(sales_log.managing_organisation_id).to eq(nil) - expect(sales_log.status).to eq("completed") + expect(sales_log.status).to eq("in_progress") task.invoke sales_log.reload expect(sales_log.managing_organisation_id).to eq(sales_log.owning_organisation_id) - expect(sales_log.status).to eq("completed") + expect(sales_log.status).to eq("in_progress") end it "does not update sales log managing_organisation_id if owning_organisation_id is nil" do