I was having a deprecation warning after upgrading to rails 3.2.16. The deprecation was related to enforce_available_locales and I can resolve it by applying solution from this question.
Rails I18n validation deprecation warning
The solution was to add this line in config/application.rb
config.i18n.enforce_available_locales = true
After adding the above line, my rspec tests suddenly become extremely slow. Usually it takes around 0.03-0.1 sec per testcase, now it takes around 2-4 secs per testcase.
Is anyone having the same problem? or is this only apply to my environment?
FYI this is my gems:
gem 'rails', '= 3.2.16'
gem 'rspec', '~> 2.14.1'
gem 'rspec-rails', '~> 2.14.0'
gem 'shoulda', '~> 3.5.0'
gem 'i18n', '~> 0.6.9'
EDITED:
I found this issue on GitHub i18n, it seems it's not just me..