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

Version Path
saucy-0.16.1 spec/mailers/invitation_mailer_spec.rb
saucy-0.16.0 spec/mailers/invitation_mailer_spec.rb
saucy-0.15.2 spec/mailers/invitation_mailer_spec.rb
saucy-0.15.1 spec/mailers/invitation_mailer_spec.rb
saucy-0.15.0 spec/mailers/invitation_mailer_spec.rb
saucy-0.14.5 spec/mailers/invitiation_mailer_spec.rb
saucy-0.14.3 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.10 spec/mailers/invitiation_mailer_spec.rb
saucy-0.14.2 spec/mailers/invitiation_mailer_spec.rb
saucy-0.14.1 spec/mailers/invitiation_mailer_spec.rb
saucy-0.14.0 spec/mailers/invitiation_mailer_spec.rb
saucy-0.13.3 spec/mailers/invitiation_mailer_spec.rb
saucy-0.13.2 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.9 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.8 spec/mailers/invitiation_mailer_spec.rb
saucy-0.13.1 spec/mailers/invitiation_mailer_spec.rb
saucy-0.13.0 spec/mailers/invitiation_mailer_spec.rb
saucy-0.12.5 spec/mailers/invitiation_mailer_spec.rb
saucy-0.12.4 spec/mailers/invitiation_mailer_spec.rb
saucy-0.12.3 spec/mailers/invitiation_mailer_spec.rb