Fix Rubocop offenses

This commit is contained in:
Sebastian Serth
2022-04-20 18:09:15 +02:00
parent f38faa45b8
commit d9f40531fb
7 changed files with 13 additions and 13 deletions

View File

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