|
|
|
@ -164,7 +164,7 @@ RSpec.describe User, type: :model do
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "can filter lettings logs by user, year and status" do |
|
|
|
|
expect(user.logs_filters).to match_array(%w[years status needstypes assigned_to user bulk_upload_id user_text_search]) |
|
|
|
|
expect(user.logs_filters).to match_array(%w[years status needstypes salestypes assigned_to user bulk_upload_id user_text_search]) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
@ -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 salestypes 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 schemes by status and owning_organisation" do |
|
|
|
@ -219,7 +219,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 salestypes 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 |
|
|
|
|