From 6b50d40be59b23b61d76c7e33356c12fb3ee27f6 Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Thu, 2 May 2024 14:25:55 +0100 Subject: [PATCH] Fix test that inexplicably relies on creation --- spec/helpers/tasklist_helper_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/helpers/tasklist_helper_spec.rb b/spec/helpers/tasklist_helper_spec.rb index 47726e2a8..8a34f86d2 100644 --- a/spec/helpers/tasklist_helper_spec.rb +++ b/spec/helpers/tasklist_helper_spec.rb @@ -83,7 +83,7 @@ RSpec.describe TasklistHelper do describe "with sales" do let(:empty_sales_log) { create(:sales_log, owning_organisation: nil) } - let(:completed_sales_log) { build(:sales_log, :completed) } + let(:completed_sales_log) { create(:sales_log, :completed) } describe "get sections count" do context "with an empty sales log" do