context"and next year resources were manually released"do
beforedo
CollectionResource.create!(year:2025,resource_type:"paper_form",display_name:"lettings log for tenants (2025 to 2026)",download_filename:"file.pdf",mandatory:true,released_to_user:true)
CollectionResource.create!(year:2025,resource_type:"bulk_upload_template",display_name:"bulk upload template (2025 to 2026)",download_filename:"file.xlsx",mandatory:true,released_to_user:true)
CollectionResource.create!(year:2025,resource_type:"bulk_upload_specification",display_name:"sales log for tenants (2025 to 2026)",download_filename:"file.xlsx",mandatory:true,released_to_user:true)
@ -184,6 +196,18 @@ RSpec.describe CollectionResourcesHelper do
it"returns true"do
expect(display_next_year_banner?).tobe_truthy
end
context"and the resources have been manually released"do
beforedo
CollectionResource.create!(year:2025,resource_type:"paper_form",display_name:"lettings log for tenants (2025 to 2026)",download_filename:"file.pdf",mandatory:true,released_to_user:true)
CollectionResource.create!(year:2025,resource_type:"bulk_upload_template",display_name:"bulk upload template (2025 to 2026)",download_filename:"file.xlsx",mandatory:true,released_to_user:true)
CollectionResource.create!(year:2025,resource_type:"bulk_upload_specification",display_name:"sales log for tenants (2025 to 2026)",download_filename:"file.xlsx",mandatory:true,released_to_user:true)