blank:"Enter name of other intermediate rent product"
saledate:
financial_year:"Date must be from 22/23 financial year, which is between 1st April 2022 and 31st March 2023"
current_financial_year:
Enter a date within the %{current_start_year_short}/%{current_end_year_short} financial year, which is between 1st April %{current_start_year_long} and 31st March %{current_end_year_long}
current_and_next_financial_year:
"Enter a date within the %{current_start_year_short}/%{current_end_year_short} or %{current_end_year_short}/%{next_end_year_short} financial years, which is between 1st April %{current_start_year_long} and 31st March %{next_end_year_long}"
startdate:
later_than_14_days_after:"The tenancy start date must not be later than 14 days from today’s date"
before_scheme_end_date:"The tenancy start date must be before the end date for this supported housing scheme"
expect(record.errors[:saledate]).toinclude("Enter a date within the 22/23 or 23/24 financial years, which is between 1st April 2022 and 31st March 2024")
end
end
context"when saledate is after the 22/23 financial year"do
expect(record.errors[:saledate]).toinclude("Enter a date within the 22/23 or 23/24 financial years, which is between 1st April 2022 and 31st March 2024")