Fix rubocop offenses

This commit is contained in:
Sebastian Serth
2022-12-09 13:11:46 +01:00
parent 5e784ef8cd
commit bf077ef478
4 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ describe SessionsController do
it 'sets the specified locale' do
expect(controller).to receive(:switch_locale).and_call_original
i18n = class_double I18n, locale: locale
i18n = class_double(I18n, locale:)
allow(I18n).to receive(:locale=).with(I18n.default_locale).and_call_original
allow(I18n).to receive(:locale=).with(locale).and_return(i18n)
perform_request