mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FEATURE: Allow sending invites to staged users
This commit is contained in:
parent
f74ac826c5
commit
dde0fcc658
7 changed files with 79 additions and 20 deletions
|
@ -178,6 +178,16 @@ describe Invite do
|
|||
|
||||
end
|
||||
|
||||
context 'a staged user' do
|
||||
it 'creates an invite for a staged user' do
|
||||
Fabricate(:staged, email: 'staged@account.com')
|
||||
invite = Invite.invite_by_email('staged@account.com', Fabricate(:coding_horror))
|
||||
|
||||
expect(invite).to be_valid
|
||||
expect(invite.email).to eq('staged@account.com')
|
||||
end
|
||||
end
|
||||
|
||||
context '.redeem' do
|
||||
|
||||
let(:invite) { Fabricate(:invite) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue