Browse Source

Update seeds a missed test

CLDC-3345-update-created-by-values
Kat 10 months ago
parent
commit
934ee4b503
  1. 6
      db/seeds.rb
  2. 2
      spec/features/schemes_spec.rb

6
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),

2
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))

Loading…
Cancel
Save