From 934ee4b503312f081d413ccdaa6e398ce8ff1978 Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 5 Apr 2024 08:44:22 +0100 Subject: [PATCH] Update seeds a missed test --- db/seeds.rb | 6 +++--- spec/features/schemes_spec.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index ad2172734..e478055d9 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -252,7 +252,7 @@ unless Rails.env.test? if (Rails.env.development? || Rails.env.review?) && SalesLog.count.zero? SalesLog.find_or_create_by!( - created_by: support_user, + assigned_to: support_user, owning_organisation: org, managing_organisation: org, saledate: Date.new(2023, 4, 1), @@ -264,7 +264,7 @@ unless Rails.env.test? ) SalesLog.find_or_create_by!( - created_by: support_user, + assigned_to: support_user, owning_organisation: org, managing_organisation: org, saledate: Date.new(2023, 4, 1), @@ -276,7 +276,7 @@ unless Rails.env.test? ) SalesLog.find_or_create_by!( - created_by: support_user, + assigned_to: support_user, owning_organisation: org, managing_organisation: org, saledate: Date.new(2023, 4, 1), diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index c5991d41d..7b94cb298 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -1085,7 +1085,7 @@ RSpec.describe "Schemes scheme Features" do let!(:user) { FactoryBot.create(:user, :data_coordinator, last_sign_in_at: Time.zone.now) } let!(:schemes) { FactoryBot.create_list(:scheme, 5, owning_organisation: user.organisation, arrangement_type: "The same organisation that owns the housing stock") } let(:location) { FactoryBot.create(:location, scheme: schemes[2]) } - let!(:lettings_log) { FactoryBot.create(:lettings_log, created_by: user, needstype: 2) } + let!(:lettings_log) { FactoryBot.create(:lettings_log, assigned_to: user, needstype: 2) } before do Timecop.freeze(Time.utc(2022, 6, 3))