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