2013-02-05 14:16:51 -05:00
|
|
|
require "spec_helper"
|
|
|
|
|
|
|
|
describe InviteMailer do
|
2013-02-25 11:42:20 -05:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
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
|