discourse/spec/mailers/invite_mailer_spec.rb

17 lines
360 B
Ruby
Raw Normal View History

2013-02-06 03:16:51 +08:00
require "spec_helper"
describe InviteMailer do
2013-02-26 00:42:20 +08:00
2013-02-06 03:16:51 +08: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