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

Version Path
saucy-0.6.1 spec/mailers/invitiation_mailer_spec.rb
saucy-0.6.0 spec/mailers/invitiation_mailer_spec.rb
saucy-0.5.5 spec/mailers/invitiation_mailer_spec.rb
saucy-0.5.4 spec/mailers/invitiation_mailer_spec.rb
saucy-0.5.3 spec/mailers/invitiation_mailer_spec.rb
saucy-0.5.2 spec/mailers/invitiation_mailer_spec.rb
saucy-0.5.1 spec/mailers/invitiation_mailer_spec.rb
saucy-0.5.0 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.10 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.9 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.8 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.7 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.6 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.5 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.4 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.3 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.2 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.1 spec/mailers/invitiation_mailer_spec.rb
saucy-0.3.4.1 spec/mailers/invitiation_mailer_spec.rb
saucy-0.4.0 spec/mailers/invitiation_mailer_spec.rb