From 177dfb5e6a0c23e5fd40feda3e4d5fd4224f25e9 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:24:15 +0100 Subject: [PATCH] Fix model test --- spec/models/user_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 5cb6cb580..f34b0ee38 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -174,7 +174,7 @@ RSpec.describe User, type: :model do end it "can filter lettings logs by user, year, status, managing_organisation and owning_organisation" do - expect(user.logs_filters).to match_array(%w[years status needstypes assigned_to user managing_organisation owning_organisation bulk_upload_id managing_organisation_text_search owning_organisation_text_search user_text_search]) + expect(user.logs_filters).to match_array(%w[years status needstypes assigned_to user uploaded_by managing_organisation owning_organisation uploading_organisation bulk_upload_id managing_organisation_text_search owning_organisation_text_search user_text_search]) end end end @@ -215,7 +215,7 @@ RSpec.describe User, type: :model do end it "can filter lettings logs by user, year, status, managing_organisation and owning_organisation" do - expect(user.logs_filters).to match_array(%w[years status needstypes assigned_to user owning_organisation managing_organisation bulk_upload_id managing_organisation_text_search owning_organisation_text_search user_text_search]) + expect(user.logs_filters).to match_array(%w[years status needstypes assigned_to user uploaded_by owning_organisation managing_organisation uploading_organisation bulk_upload_id managing_organisation_text_search owning_organisation_text_search user_text_search]) end end