mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
17 lines
362 B
Ruby
17 lines
362 B
Ruby
|
require "spec_helper"
|
||
|
|
||
|
describe InviteMailer do
|
||
|
|
||
|
describe "send_invite" do
|
||
|
let(:invite) { Fabricate(:invite) }
|
||
|
subject { InviteMailer.send_invite(invite) }
|
||
|
|
||
|
its(:to) { should == [invite.email] }
|
||
|
its(:subject) { should be_present }
|
||
|
its(:body) { should be_present }
|
||
|
its(:from) { should == [SiteSetting.notification_email] }
|
||
|
end
|
||
|
|
||
|
|
||
|
end
|