Sha256: 94b24e49c14e1e29ad2298ab4fbeaeee75787fc170f457ceb6d0ab38b4128cf1
Contents?: true
Size: 587 Bytes
Versions: 31
Compression:
Stored size: 587 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.mailer_sender] end end
Version data entries
31 entries across 31 versions & 1 rubygems