You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0) 4.1.1+portage-4.2.2
Expected behaviour:
The test suite includes several translation-focused tests (e.g. testing what is rendered for translation.#{LOCALE}.yml files and testing output of _(). We would like to be able to ensure that these tests are working for locales that exist within our app.
Actual behaviour:
Tests mostly appear to be configured for either :en (the default I18n locale) or :'en-GB'.
In order to test a file like config/locales/translation.en-CA.yml, overriding is required within a test.
This change resolves the following error:
```
rspec ./spec/features/modal_search_spec.rb:25
1) ModalSearchDialog Modal search opens and closes and allows user to search, select and remove items
Failure/Error: <td><%= l(plan.updated_at.to_date, formats: :short) %></td>
ActionView::Template::Error:
Translation missing: en-GB.date.formats.default
```
Because en-GB is not a locale used within DMP Assistant, commit f600ba0 removed the related en-GB files from the app.
Setting the locale to 'en-CA' unfortunately breaks the tests as well. There is an open issue that seeks to resolve this: #931
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
4.1.1+portage-4.2.2
Expected behaviour:
translation.#{LOCALE}.yml
files and testing output of_()
. We would like to be able to ensure that these tests are working for locales that exist within our app.Actual behaviour:
:en
(the defaultI18n
locale) or:'en-GB'
.config/locales/translation.en-CA.yml
, overriding is required within a test.Relevant Files
spec/features/locales_spec.rb
spec/support/faker.rb
spec/support/locales.rb
The text was updated successfully, but these errors were encountered: