Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport] Fix pluralization spec when using different default locale #2973

Merged
merged 1 commit into from
Oct 17, 2018

Conversation

voodoorai2000
Copy link
Member

References

PR: AyuntamientoMadrid#1664

Objectives

Update i18n spec to make it pass with a default_locale different to English

Notes

Check out the commit's description for details

This spec was failing due to using :es as the default_locale in application.rb[1], but using :en as the default_locale in the test environment[2]

The fallback rules where getting a little confused and not including the default locale, for the test environment, in the fallback rules

With this commit we are making sure that rule is created, as it would in a production environment that uses the default_locale in application.rb

[1] https://github.com/AyuntamientoMadrid/consul/blob/master/config/application.rb#L22

[2] https://github.com/AyuntamientoMadrid/consul/blob/master/spec/rails_helper.rb#L15
Copy link
Member

@javierm javierm left a comment

Choose a reason for hiding this comment

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

Travis failures don't seem to be related to this pull request. One of them will be fixed in AyuntamientoMadrid#1604

@voodoorai2000 voodoorai2000 merged commit e2e9d8e into master Oct 17, 2018
@voodoorai2000 voodoorai2000 deleted the i18n_defensive_spec branch October 17, 2018 18:26
@voodoorai2000 voodoorai2000 added this to Release 0.16 in Roadmap Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants