DEV: Add missing assertion for InvitesController test (#18755)

This commit is contained in:
Alan Guo Xiang Tan 2022-10-26 20:04:55 +08:00 committed by GitHub
parent 1da5aa9027
commit fd993240fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -631,7 +631,9 @@ RSpec.describe InvitesController do
it 'does not log in the user if there are validation errors' do
put "/invites/show/#{invite.invite_key}.json", params: { password: 'password' }
expect(response.status).to eq(412)
expect(session[:current_user_id]).to eq(nil)
end
it 'does not log in the user if they were not approved' do