Fix User/SessionsController spec
This commit is contained in:
parent
66878544bf
commit
9352f8481b
|
@ -82,7 +82,7 @@ describe User::SessionsController do
|
||||||
|
|
||||||
it "redirects to the sign in page" do
|
it "redirects to the sign in page" do
|
||||||
expect(subject).to redirect_to :new_user_session
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue