From 6782e6de00fdfd9062b202f96f91db67e15014d1 Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 25 Jul 2022 09:22:49 +0100 Subject: [PATCH] Test --- spec/requests/form_controller_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/requests/form_controller_spec.rb b/spec/requests/form_controller_spec.rb index d6b4a5a30..7bad7b0a3 100644 --- a/spec/requests/form_controller_spec.rb +++ b/spec/requests/form_controller_spec.rb @@ -110,7 +110,8 @@ RSpec.describe FormController, type: :request do end before do - FactoryBot.create_list(:location, 5) + locations = FactoryBot.create_list(:location, 5) + locations.each { |location| location.scheme.update!(arrangement_type: "The same organisation that owns the housing stock", managing_organisation_id: location.scheme.owning_organisation_id) } end it "returns an unfiltered list of schemes" do