FIX: include topic title and domain name in topic invite mail

This commit is contained in:
Arpit Jalan
2014-07-10 10:03:09 +05:30
parent c5d3db9148
commit 8395da5bd0
3 changed files with 10 additions and 1 deletions

View File

@@ -42,6 +42,14 @@ describe InviteMailer do
expect(invite_mail.subject).to be_present
end
it 'renders topic title in subject' do
expect(invite_mail.subject).to match(topic.title)
end
it 'renders site domain name in subject' do
expect(invite_mail.subject).to match(Discourse.current_hostname)
end
it 'renders the body' do
expect(invite_mail.body).to be_present
end