Sha256: d33ab2f1b0ee0df35e8e42771f924b73f1051ecd64a409ae72ce9b2a1702556b

Contents?: true

Size: 569 Bytes

Versions: 75

Compression:

Stored size: 569 Bytes

Contents

require 'rails_helper'

describe ::Dorsale::UserMailer do
  describe "New Account" do
    let(:user) { create(:user) }
    let(:email) { ::Dorsale::UserMailer.new_account(user, user.password) }

    it 'should send to the right person' do
      expect(email.to).to eq([user.email])
    end

    it 'should have the right sender' do
      expect(email.from).to eq(["contact@example.org"])
    end

    it 'should contain user_type, login and password' do
      expect(email.body).to include user.email
      expect(email.body).to include user.password
    end

  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
dorsale-3.8.1 spec/mailers/user_mailer.rb
dorsale-3.8.0 spec/mailers/user_mailer.rb
dorsale-3.7.8 spec/mailers/user_mailer.rb
dorsale-3.7.7 spec/mailers/user_mailer.rb
dorsale-3.7.6 spec/mailers/user_mailer.rb
dorsale-3.7.5 spec/mailers/user_mailer.rb
dorsale-3.7.4 spec/mailers/user_mailer.rb
dorsale-3.7.2 spec/mailers/user_mailer.rb
dorsale-3.7.1 spec/mailers/user_mailer.rb
dorsale-3.7.0 spec/mailers/user_mailer.rb
dorsale-3.6.1 spec/mailers/user_mailer.rb
dorsale-3.6.0 spec/mailers/user_mailer.rb
dorsale-3.5.2 spec/mailers/user_mailer.rb
dorsale-3.5.1 spec/mailers/user_mailer.rb
dorsale-3.5.0 spec/mailers/user_mailer.rb
dorsale-3.4.0 spec/mailers/user_mailer.rb
dorsale-3.3.0 spec/mailers/user_mailer.rb
dorsale-3.2.0 spec/mailers/user_mailer.rb
dorsale-3.1.7 spec/mailers/user_mailer.rb
dorsale-3.1.6 spec/mailers/user_mailer.rb