i18n config at test environment
Yesterday I've found some i18n missing data by manual testing the app. Why, if I have a full suite of rspec tests? (thanks Oriol!)
~By default, i18n only throw MissingTranslationData exceptions on development~
Update:
By default exceptions on missing translations are disabled in all environments. But in MarsBased projects we enabled it on development (we should enable on test also).
I want my tests to catch as much errors as possible, so I've change that default:
config/environments/test.rb
:
Rails.application.configure do
...
config.action_view.raise_on_missing_translations = true
end
I don't know why is not the default...
🖖