Add tests for locale setting (#1823)
* Add tests for locale setting

- Adds Faker::Language module for testing languages with real-ish data
- Refactors global constants into Language model (See Issue#1696)
- Add specs to test locale change works

* Clean up language files to remove long names

* Add DB check in FastGettext initializer

* Set Memory cache for temporary caching solution

* Fix bug in Plan Rule
dev
1 parent e14b6b7 commit 7c7146037b658b35c12519807e85d2974cf734ef
@Gavin Morrice Gavin Morrice authored on 21 Aug 2018
Sam Rust committed on 21 Aug 2018
Showing 16 changed files
View
app/helpers/languages_helper.rb 0 → 100644
View
app/models/language.rb
View
app/views/devise/registrations/_personal_details.html.erb
View
app/views/layouts/_signin_signout.html.erb
View
app/views/super_admin/users/edit.html.erb
View
config/application.rb
View
config/initializers/constants.rb
View
config/initializers/fast_gettext.rb
View
config/locales/faker/faker.de.yml 0 → 100644
View
config/locales/faker/faker.en.yml 0 → 100644
View
config/locales/faker/faker.en_GB.yml 0 → 100644
View
config/locales/faker/faker.fr.yml 0 → 100644
View
lib/data_cleanup/rules/plan/fix_blank_title.rb
View
lib/faker/language.rb 0 → 100644
View
spec/factories/languages.rb
View
spec/features/locales_spec.rb 0 → 100644