mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-15 04:14:24 +00:00
12332 - Fix rubocop Rails/I18nLocaleAssignment errors
- use I18n.with_locale method rather than direct locale assignment
This commit is contained in:
@@ -133,9 +133,9 @@ describe '
|
||||
}
|
||||
|
||||
around(:each) do |spec|
|
||||
I18n.locale = :pt
|
||||
spec.run
|
||||
I18n.locale = :en
|
||||
I18n.with_locale(:pt) do
|
||||
spec.run
|
||||
end
|
||||
end
|
||||
|
||||
context 'using datetimepickers' do
|
||||
|
||||
Reference in New Issue
Block a user