Skip to content

Commit

Permalink
Don't force enforce_available_locales (#1368)
Browse files Browse the repository at this point in the history
* Don't force enforce_available_locales

Respect what each application configures.

* Remove unneeded setting for tests to pass
  • Loading branch information
deivid-rodriguez authored and vbrazo committed Sep 18, 2018
1 parent 1f9f3c2 commit 644321d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions lib/faker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
require 'i18n'
require 'set' # Fixes a bug in i18n 0.6.11

if I18n.respond_to?(:enforce_available_locales=)
I18n.enforce_available_locales = true
end
I18n.load_path += Dir[File.join(mydir, 'locales', '**/*.yml')]
I18n.reload! if I18n.backend.initialized?

Expand Down
1 change: 0 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
I18n.available_locales = Dir[locales_path + '/*'].map do |file|
file.split('.').first
end
I18n.enforce_available_locales = true

# deterministically_verify executes the test provided in the block successive
# times with the same deterministic_random seed.
Expand Down

0 comments on commit 644321d

Please sign in to comment.