Ruby on rails gem上的Rails I18n弃用警告

Ruby on rails gem上的Rails I18n弃用警告,ruby-on-rails,ruby,ruby-on-rails-4,rspec,deprecated,Ruby On Rails,Ruby,Ruby On Rails 4,Rspec,Deprecated,与之相关,我有一个使用rails 4.1.8和rspec 2.99的gem。当我运行我的rspec套件时,我收到了弃用通知: [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to

与之相关,我有一个使用rails 4.1.8和rspec 2.99的gem。当我运行我的rspec套件时,我收到了弃用通知:

[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
在链接的帖子中,解决方案是将
config.i18n.enforce\u available\u locales=true
添加到
application.rb
;然而,gem没有这样的文件,我不知道在哪里设置gem的配置设置

更新

我尝试将此语句添加到我的
railtie.rb
中,这似乎是在中暗示的,但似乎没有任何效果