DEV: Add missing assertion for InvitesController test (#18755)
This commit is contained in:
parent
1da5aa9027
commit
fd993240fd
|
@ -631,7 +631,9 @@ RSpec.describe InvitesController do
|
||||||
|
|
||||||
it 'does not log in the user if there are validation errors' do
|
it 'does not log in the user if there are validation errors' do
|
||||||
put "/invites/show/#{invite.invite_key}.json", params: { password: 'password' }
|
put "/invites/show/#{invite.invite_key}.json", params: { password: 'password' }
|
||||||
|
|
||||||
expect(response.status).to eq(412)
|
expect(response.status).to eq(412)
|
||||||
|
expect(session[:current_user_id]).to eq(nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not log in the user if they were not approved' do
|
it 'does not log in the user if they were not approved' do
|
||||||
|
|
Loading…
Reference in New Issue