Sha256: 195477eaf46e13aec62069a2e1b25ceee41c90fa77710b13ae1d942cabd146af

Contents?: true

Size: 569 Bytes

Versions: 19

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

19 entries across 19 versions & 1 rubygems

Version Path
dorsale-3.14.2 spec/mailers/user_mailer.rb
dorsale-3.14.1 spec/mailers/user_mailer.rb
dorsale-3.14.0 spec/mailers/user_mailer.rb
dorsale-3.13.0 spec/mailers/user_mailer.rb
dorsale-3.12.0 spec/mailers/user_mailer.rb
dorsale-3.11.0 spec/mailers/user_mailer.rb
dorsale-3.10.3 spec/mailers/user_mailer.rb
dorsale-3.10.2 spec/mailers/user_mailer.rb
dorsale-3.10.1 spec/mailers/user_mailer.rb
dorsale-3.10.0 spec/mailers/user_mailer.rb
dorsale-3.9.8 spec/mailers/user_mailer.rb
dorsale-3.9.7 spec/mailers/user_mailer.rb
dorsale-3.9.6 spec/mailers/user_mailer.rb
dorsale-3.9.5 spec/mailers/user_mailer.rb
dorsale-3.9.4 spec/mailers/user_mailer.rb
dorsale-3.9.3 spec/mailers/user_mailer.rb
dorsale-3.9.2 spec/mailers/user_mailer.rb
dorsale-3.9.1 spec/mailers/user_mailer.rb
dorsale-3.9.0 spec/mailers/user_mailer.rb