diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 2c035c9fd..886c31e6e 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -174,7 +174,15 @@ 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 uploaded_by managing_organisation owning_organisation uploading_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 managing_organisation owning_organisation bulk_upload_id managing_organisation_text_search owning_organisation_text_search user_text_search]) + end + + it "can filter bulk uploads by year, uploaded_by and uploading_organisation " do + expect(user.bulk_uploads_filters).to match_array(%w[years uploaded_by uploading_organisation]) + end + + it "can filter schemes by status and owning_organisation" do + expect(user.scheme_filters).to match_array(%w[status owning_organisation owning_organisation_text_search]) end end end @@ -215,7 +223,15 @@ 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 uploaded_by owning_organisation managing_organisation uploading_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 owning_organisation managing_organisation bulk_upload_id managing_organisation_text_search owning_organisation_text_search user_text_search]) + end + + it "can filter bulk uploads by year, uploaded_by and uploading_organisation " do + expect(user.bulk_uploads_filters).to match_array(%w[years uploaded_by uploading_organisation]) + end + + it "can filter schemes by status and owning_organisation" do + expect(user.scheme_filters).to match_array(%w[status owning_organisation owning_organisation_text_search]) end end