Enter a date within the %{current_start_year_short}/%{current_end_year_short} financial year, which is between %{current_start_year_long} and %{current_end_year_long}
Enter a date within the %{current_start_year_short}/%{current_end_year_short} financial year, which is between %{current_start_year_long} and %{current_end_year_long}
previous_and_current_financial_year:
previous_and_current_financial_year:
"Enter a date within the %{previous_start_year_short}/%{previous_end_year_short} or %{previous_end_year_short}/%{current_end_year_short} financial years, which is between %{previous_start_year_long} and %{current_end_year_long}"
"Enter a date within the %{previous_start_year_short}/%{previous_end_year_short} or %{previous_end_year_short}/%{current_end_year_short} financial years, which is between %{previous_start_year_long} and %{current_end_year_long}"
type:
percentage_bought_must_be_at_least_threshold:"The minimum increase in equity while staircasing is %{threshold}% for this shared ownership type"
startdate:
startdate:
later_than_14_days_after:"The tenancy start date must not be later than 14 days from today’s date"
later_than_14_days_after:"The tenancy start date must not be later than 14 days from today’s date"
it"adds an error to stairbought if the percentage bought is less than the threshold (which depends on the shared ownership type)"do
it"adds an error to stairbought and type if the percentage bought is less than the threshold (which is 1% by default, but higher for some shared ownership types)"do
expect(record.errors["stairbought"]).toeq(["The minimum increase in equity while staircasing is 1%"])
expect(record.errors["stairbought"]).toeq(["The minimum increase in equity while staircasing is 1%"])
expect(record.errors["type"]).toeq(["The minimum increase in equity while staircasing is 1% for this shared ownership type"])
record.errors.clear
record.errors.clear
end
end
it"doesn't add an error to stairbought if the percentage bought is greater than or equal to the threshold (which depends on the shared ownership type)"do
it"doesn't add an error to stairbought and type if the percentage bought is less than the threshold (which is 1% by default, but higher for some shared ownership types)"do