Fix User/SessionsController spec

This commit is contained in:
Andreas Nedbal 2023-12-11 01:27:43 +01:00 committed by Andreas Nedbal
parent 66878544bf
commit 9352f8481b
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ describe User::SessionsController do
it "redirects to the sign in page" do
expect(subject).to redirect_to :new_user_session
expect(flash[:notice]).to eq "#{I18n.t('user.sessions.create.banned', name: user.screen_name)}\n#{I18n.t('user.sessions.create.reason', reason: 'Do not feed the animals')}"
expect(flash[:notice]).to eq "#{I18n.t('user.sessions.create.banned', name: user.screen_name)}\n#{I18n.t('user.sessions.create.reason', reason: 'Do not feed the animals')}\n#{I18n.t('user.sessions.create.permanent')}"
end
end