Sha256: 2918a15ef12915b4b8f47ee4252f1fac0f40c9c7f739df8a00680d9b4a15a2f3
Contents?: true
Size: 595 Bytes
Versions: 50
Compression:
Stored size: 595 Bytes
Contents
require 'spec_helper' describe InvitationMailer, "invitation" do let(:invitation) { Factory(:invitation) } subject { InvitationMailer.invitation(invitation) } it "sets reply-to to the user that sent the invitation" do subject.reply_to.should == [invitation.sender_email] end it "sets from to the user's name" do from = subject.header_fields.detect { |field| field.name == "From"} from.value.should =~ %r{^"#{invitation.sender_name}" <.*>$} end it "sends from the support address" do subject.from.should == [Saucy::Configuration.support_email_address] end end
Version data entries
50 entries across 50 versions & 2 rubygems