mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:14:58 +08:00
FIX: Correctly use invite to topic email templates (#12411)
It was used both when inviting from a topic page and when creating invites with "Send to topic on first login", while it should be used only in the former case.
This commit is contained in:
@ -90,7 +90,7 @@ describe InviteMailer do
|
||||
Invite.find_by(invited_by_id: topic.user.id)
|
||||
end
|
||||
|
||||
let(:invite_mail) { InviteMailer.send_invite(invite) }
|
||||
let(:invite_mail) { InviteMailer.send_invite(invite, invite_to_topic: true) }
|
||||
|
||||
it 'renders the invitee email' do
|
||||
expect(invite_mail.to).to eql(['name@example.com'])
|
||||
|
Reference in New Issue
Block a user