Skip to content

Commit

Permalink
Stop ignoring travel alert status in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hannalaakso committed Sep 13, 2023
1 parent 6fb66a6 commit ec7aedb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/i18n-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ data:
ignore_unused:
- 'content_item.schema_name.*.{one,other,zero,few,many,two}'
- 'corporate_information_page.*'
- 'travel_advice.alert_status.*'
# - 'travel_advice.alert_status.*'
- 'publication.documents.other'
2 changes: 1 addition & 1 deletion test/presenters/travel_advice_presenter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ 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]
example["details"]["alert_status"] = %w["avoid_all_but_essential_travel_to_parts", "avoid_all_travel_to_parts"]

Check failure on line 215 in test/presenters/travel_advice_presenter_test.rb

View workflow job for this annotation

GitHub Actions / Lint Ruby / Run RuboCop

Lint/PercentStringArray: Within `%w`/`%W`, quotes and ',' are unnecessary and may be unwanted in the resulting strings.
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")
end
Expand Down

0 comments on commit ec7aedb

Please sign in to comment.