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-2.6.2 spec/mailers/user_mailer.rb
dorsale-2.6.1 spec/mailers/user_mailer.rb
dorsale-2.6.0 spec/mailers/user_mailer.rb
dorsale-2.5.0 spec/mailers/user_mailer.rb
dorsale-2.4.3 spec/mailers/user_mailer.rb
dorsale-2.4.2 spec/mailers/user_mailer.rb
dorsale-2.4.1 spec/mailers/user_mailer.rb
dorsale-2.4.0 spec/mailers/user_mailer.rb
dorsale-2.3.5 spec/mailers/user_mailer.rb
dorsale-2.3.4 spec/mailers/user_mailer.rb
dorsale-2.3.3 spec/mailers/user_mailer.rb
dorsale-2.3.2 spec/mailers/user_mailer.rb
dorsale-2.3.1 spec/mailers/user_mailer.rb
dorsale-2.3.0 spec/mailers/user_mailer.rb
dorsale-2.2.16 spec/mailers/user_mailer.rb
dorsale-2.2.15 spec/mailers/user_mailer.rb
dorsale-2.2.14 spec/mailers/user_mailer.rb
dorsale-2.2.13 spec/mailers/user_mailer.rb
dorsale-2.2.12 spec/mailers/user_mailer.rb
dorsale-2.2.11 spec/mailers/user_mailer.rb