diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml index 9a65bec26b..403ce335ab 100644 --- a/config/i18n-tasks.yml +++ b/config/i18n-tasks.yml @@ -5,5 +5,4 @@ data: ignore_unused: - 'content_item.schema_name.*.{one,other,zero,few,many,two}' - 'corporate_information_page.*' - - 'travel_advice.alert_status.*' - 'publication.documents.other' diff --git a/test/presenters/travel_advice_presenter_test.rb b/test/presenters/travel_advice_presenter_test.rb index f6cfbba603..2ffbd684ae 100644 --- a/test/presenters/travel_advice_presenter_test.rb +++ b/test/presenters/travel_advice_presenter_test.rb @@ -213,8 +213,11 @@ def schema_name test "presents alert statuses" do example = schema_item("full-country") example["details"]["alert_status"] = %w[avoid_all_but_essential_travel_to_parts avoid_all_travel_to_parts] - assert present_example(example).alert_status.include?("advise against all but essential travel") - assert present_example(example).alert_status.include?("advise against all travel to parts") + + presented = present_example(example) + + assert presented.alert_status.first.include?("advise against all but essential travel to parts of #{presented.country_name}") + assert presented.alert_status.last.include?("advise against all travel to parts of #{presented.country_name}") end test "metadata uses today for 'Still current at'" do