mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:14:17 +08:00
DEV: Add tests for invite system (#12524)
This commit is contained in:
@ -3377,6 +3377,7 @@ RSpec.describe TopicsController do
|
||||
end.to change { Invite.where(invited_by_id: user.id).count }.by(1)
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(Jobs::InviteEmail.jobs.first['args'].first['invite_to_topic']).to be_truthy
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user