12332 - Fix rubocop Rails/I18nLocaleAssignment errors

- use I18n.with_locale method rather than direct locale assignment
This commit is contained in:
Ahmed Ejaz
2024-04-07 00:17:21 +05:00
committed by Maikel Linke
parent 89033579bd
commit 693b9bd171
5 changed files with 28 additions and 36 deletions

View File

@@ -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