Fix Rails/I18nLocaleAssignment cop (#24693)
This commit is contained in:
parent
af824db398
commit
d00e45a7d3
4 changed files with 19 additions and 27 deletions
|
@ -3,8 +3,10 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Localization' do
|
||||
after(:all) do
|
||||
I18n.locale = I18n.default_locale
|
||||
around do |example|
|
||||
I18n.with_locale(I18n.locale) do
|
||||
example.run
|
||||
end
|
||||
end
|
||||
|
||||
it 'uses a specific region when provided' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue