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.12.2 spec/mailers/invitiation_mailer_spec.rb
saucy-0.12.1 spec/mailers/invitiation_mailer_spec.rb
saucy-0.12.0 spec/mailers/invitiation_mailer_spec.rb
saucy-0.11.5 spec/mailers/invitiation_mailer_spec.rb
saucy-0.11.3 spec/mailers/invitiation_mailer_spec.rb
saucy-0.11.2 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.7 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.6 spec/mailers/invitiation_mailer_spec.rb
saasy-0.0.2.alpha3 spec/mailers/invitiation_mailer_spec.rb
saasy-0.0.2.alpha2 spec/mailers/invitiation_mailer_spec.rb
saasy-0.0.2.alpha1 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.5 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.4 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.3 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.2 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.1 spec/mailers/invitiation_mailer_spec.rb
saucy-0.10.0 spec/mailers/invitiation_mailer_spec.rb
saucy-0.9.1 spec/mailers/invitiation_mailer_spec.rb
saucy-0.9.0 spec/mailers/invitiation_mailer_spec.rb
saucy-0.8.5 spec/mailers/invitiation_mailer_spec.rb