Skip to content

Do not hardcode default locale for i18n tests#484

Merged
josepjaume merged 1 commit intomasterfrom
fix_i18n_tests
Jan 11, 2017
Merged

Do not hardcode default locale for i18n tests#484
josepjaume merged 1 commit intomasterfrom
fix_i18n_tests

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

🎩 What? Why?

The i18n tests have the default locale hardcoded and set to English. In https://github.com/HospitaletDeLlobregat/decidim-hospitalet we don't use English, so the tests always fail due to missing translations.

This PR uses the I18n.default_locale value to set the default locale for these tests.

📌 Related Issues

None

📋 Subtasks

None

📷 Screenshots (optional)

None

@mention-bot
Copy link
Copy Markdown

@mrcasals, thanks for your PR! By analyzing the history of the files in this pull request, we identified @josepjaume to be a potential reviewer.

1 similar comment
@mention-bot
Copy link
Copy Markdown

@mrcasals, thanks for your PR! By analyzing the history of the files in this pull request, we identified @josepjaume to be a potential reviewer.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 11, 2017

Current coverage is 96.93% (diff: 100%)

Merging #484 into master will not change coverage

@@             master       #484   diff @@
==========================================
  Files           234        234          
  Lines          3528       3528          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           3420       3420          
  Misses          108        108          
  Partials          0          0          

Powered by Codecov. Last update 2c7dc8a...acd165a

Copy link
Copy Markdown
Contributor

@josepjaume josepjaume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL very nice 👍

@josepjaume josepjaume merged commit da83d0b into master Jan 11, 2017
@josepjaume josepjaume deleted the fix_i18n_tests branch January 11, 2017 10:10
aitorlb pushed a commit to CodiTramuntana/decidim that referenced this pull request Aug 8, 2019
* fix display of comments count when comment has been moderated

* [BACKPORT] Use latest docker image for test env (decidim#4731)

* Use latest docker image for test env

* Bump Ruby version to match the one in tests

* Fix conferences dependencies

* Fix bundle version

* Fix bundles

* Backport decidim#4708 to 0.16-stable (decidim#4721)

* Backport decidim#4708 to 16-stable

* Add CHANGELOG entry

* Add ability to toggle user groups by organization (decidim#4681) (decidim#4735)

* Added a switch to organizations to disable user groups feature

* Set user_groups_enabled attribute value in admin and system admin

Default value is true, and can be modified by admins.

* User groups methods moved to a new concern from UserProfile

* Disable user groups when on core user pages

* Disable user_groups on amendments

* Disable user groups on admin

* Disable user groups on proposals

* Add changelog entry

* [BACKPORT] MetricResolver filtering correction (decidim#4736)

* [BACKPORT] MetricResolver filtering correction

* Added CHANGELOG entry

* Fix loading translations on comments (decidim#4728) (decidim#4739)

This way they won't fail when there's a problem

* New Crowdin translations (decidim#4738)

* New translations en.yml (German)

* New translations en.yml (Hungarian)

* New translations en.yml (Hungarian)

* New translations en.yml (Hungarian)

* New translations en.yml (Hungarian)

* New translations en.yml (Hungarian)

* New translations en.yml (Hungarian)

* New translations en.yml (Hungarian)

* New translations en.yml (Hungarian)

* New translations en.yml (Hungarian)

* New translations en.yml (Hungarian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (German)

* New translations en.yml (Galician)

* New translations en.yml (Galician)

* New translations en.yml (Galician)

* New translations en.yml (Galician)

* New translations en.yml (Galician)

* New translations en.yml (German)

* New translations en.yml (German)

* New translations en.yml (German)

* New translations en.yml (German)

* New translations en.yml (German)

* New translations en.yml (German)

* New translations en.yml (German)

* New translations en.yml (German)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Italian)

* New translations en.yml (Italian)

* New translations en.yml (Italian)

* New translations en.yml (Basque)

* New translations en.yml (Polish)

* New translations en.yml (Polish)

* New translations en.yml (Italian)

* New translations en.yml (Polish)

* New translations en.yml (Polish)

* New translations en.yml (Polish)

* New translations en.yml (Polish)

* New translations en.yml (Polish)

* New translations en.yml (Polish)

* New translations en.yml (Polish)

* New translations en.yml (Italian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Indonesian)

* New translations en.yml (Italian)

* New translations en.yml (Italian)

* New translations en.yml (Italian)

* New translations en.yml (Italian)

* New translations en.yml (Italian)

* New translations en.yml (Catalan)

* New translations en.yml (Catalan)

* New translations en.yml (Catalan)

* New translations en.yml (Catalan)

* New translations en.yml (Catalan)

* New translations en.yml (Catalan)

* New translations en.yml (Dutch)

* New translations en.yml (Catalan)

* New translations en.yml (Dutch)

* New translations en.yml (Dutch)

* New translations en.yml (Dutch)

* New translations en.yml (Dutch)

* New translations en.yml (Dutch)

* New translations en.yml (Catalan)

* New translations en.yml (Catalan)

* New translations en.yml (Basque)

* New translations en.yml (Galician)

* New translations en.yml (Basque)

* New translations en.yml (Basque)

* New translations en.yml (Basque)

* New translations en.yml (Basque)

* New translations en.yml (Basque)

* New translations en.yml (Catalan)

* New translations en.yml (Basque)

* New translations en.yml (Basque)

* New translations en.yml (Basque)

* New translations en.yml (Catalan)

* New translations en.yml (Catalan)

* New translations en.yml (Catalan)

* New translations en.yml (Catalan)

* New translations en.yml (Dutch)

* New translations en.yml (Dutch)

* New translations en.yml (French)

* New translations en.yml (French)

* New translations en.yml (French)

* New translations en.yml (French)

* New translations en.yml (French)

* New translations en.yml (French)

* New translations en.yml (French)

* New translations en.yml (French)

* New translations en.yml (French)

* New translations en.yml (Galician)

* New translations en.yml (Galician)

* New translations en.yml (Dutch)

* New translations en.yml (Galician)

* New translations en.yml (Galician)

* New translations en.yml (French)

* New translations en.yml (Finnish)

* New translations en.yml (Dutch)

* New translations en.yml (Finnish)

* New translations en.yml (Finnish)

* New translations en.yml (Finnish)

* New translations en.yml (Finnish)

* New translations en.yml (Finnish)

* New translations en.yml (Finnish)

* New translations en.yml (Finnish)

* New translations en.yml (Finnish)

* New translations en.yml (Finnish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Turkish)

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Swedish)

* New translations en.yml (Finnish (plain))

* New translations en.yml (Swedish)

* New translations en.yml (Swedish)

* New translations en.yml (Swedish)

* New translations en.yml (Swedish)

* New translations en.yml (Swedish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Turkish)

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Ukrainian with many plural form)

* New translations en.yml (Ukrainian with many plural form)

* New translations en.yml (Ukrainian with many plural form)

* New translations en.yml (Ukrainian with many plural form)

* New translations en.yml (Ukrainian with many plural form)

* New translations en.yml (Ukrainian with many plural form)

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Finnish (plain))

* New translations en.yml (Russian with many plural form)

* New translations en.yml (Russian with many plural form)

* New translations en.yml (Russian with many plural form)

* New translations en.yml (Russian with many plural form)

* New translations en.yml (Russian with many plural form)

* New translations en.yml (Russian with many plural form)

* New translations en.yml (Swedish)

* New translations en.yml (Portuguese, Brazilian)

* New translations en.yml (Swedish)

* New translations en.yml (Portuguese, Brazilian)

* New translations en.yml (Portuguese, Brazilian)

* New translations en.yml (Portuguese, Brazilian)

* New translations en.yml (Portuguese, Brazilian)

* New translations en.yml (Portuguese, Brazilian)

* New translations en.yml (Portuguese, Brazilian)

* New translations en.yml (Portuguese, Brazilian)

* New translations en.yml (Portuguese, Brazilian)

* New translations en.yml (Portuguese, Brazilian)

* New translations en.yml (Portuguese)

* New translations en.yml (Spanish)

* New translations en.yml (Polish)

* New translations en.yml (Portuguese)

* New translations en.yml (Portuguese)

* New translations en.yml (Portuguese)

* New translations en.yml (Portuguese)

* New translations en.yml (Portuguese)

* New translations en.yml (Portuguese)

* New translations en.yml (Portuguese)

* New translations en.yml (Portuguese)

* New translations en.yml (Portuguese)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Swedish)

* New translations en.yml (Spanish, Paraguay)

* New translations en.yml (Spanish, Paraguay)

* New translations en.yml (Spanish, Paraguay)

* New translations en.yml (Spanish, Paraguay)

* New translations en.yml (Spanish, Paraguay)

* New translations en.yml (Spanish, Paraguay)

* New translations en.yml (Spanish, Paraguay)

* New translations en.yml (Swedish)

* New translations en.yml (Swedish)

* New translations en.yml (Swedish)

* New translations en.yml (Swedish)

* New translations en.yml (Spanish, Paraguay)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish)

* New translations en.yml (Spanish, Paraguay)

* New translations en.yml (Spanish, Paraguay)

* Update bundles

* 🐛 current_feature deprecated

* Adds environment to open data export task to avoid errors (decidim#4743)

* 🌐 FR --> Concertations decidim#378

* 🌐 FR --> Concertations decidim#378

* 🌐 FR --> Concertations decidim#378

* Fix action authorizer with blank permissions 0.16 backport (decidim#4746)

* Ignore blank permission options in action authorizer

* Add CHANGELOG

* 🐛 decidim#417 : fix exports translatable_attr when first line is empty

- add `empty_translatable` helper to provide blank values
- fix `Decidim::Proposals::ProposalSerializer`
- fix `Decidim::Comments::CommentSerializer`
- fix `Decidim::Accountability::ResultSerializer`
- TODO : need specific tests on headers

* :robot: rubocop offense `C: Style/StringLiterals`

* :bug: decidim#360 fix survey choices export for free text option

* ✨ decidim#216 Survey answer date

* ✨ decidim#226 Survey answer date

* 🤖

* 🐛 decidim#421 fix Proposal mention links

- only replace link when url contains "proposals" path
- prevent switching between components with same item id

* ✨ add mentions for Accountibility Results

- add new `ContentProccessor` objects (`Parser` & `Renderer`)
- add new `ResultPresenter`

* ✨ add mentions for Budgets Projects

- add new `ContentProccessor` objects (`Parser` & `Renderer`)
- add new `ProjectPresenter`

* ✅ fix tests for content parser

* Backport decidim#4778 to 0.16-stable (decidim#4777)

* Move code parent assemblies from index to partial

* Refactor filtered assemblies query

* Refactor filter assemblies helper and partial

* Change tests

* Add CHANGELOG entry

* 🐛 fixes decidim#344 for `NotifyProposalsMentionedJob`

* 🐛 fixes decidim#344 for `NotifyProposalsMentionedJob`

* 🤖 rubocop decidim#344

* ✅ fixes tests for decidim#344

* 🤖 rubocop

* Backport participatory text related evoutives and fixes. (decidim#4801)

* Backport participatory text related evoutives and fixes.

* Add changelog entry.

* Update decidim_app-design Gemfile.lock.

* Update decidim-generators Gemfile.lock.

* Sort this PR's changelog entries for the next v0.16.1.

* [TEST] Update participatory_text.odt document version with non ASCII symbols.

* Backport decidim#4811 to 0.16-stable (decidim#4815)

* Fix attachments not being inherited and add test

* Add CHANGELOG entry

* 🐛 fixes Pagination in assemblies decidim#459

* 🐛 ✉️ add opt out notifications mail link

- #RGPD

* 🐛 unused keys

* 🐛 💚 test_main

* 🐛 💚 test_main

* 🌐 💚 after patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants