* Remove obsolete SiteConfig values * Remove DUS * fixup! Remove obsolete SiteConfig values * fixup! Remove obsolete SiteConfig values * Add DUS for removing SiteConfig values * Fix specs * Fix specs * Clean up more DUS * Update DUS * Fix remaining spec * Remove leftover spec * Fix more specs * Fix spec * Remove deprecated spec * Rearrange specs * Temporarily disable specs
17 lines
615 B
Ruby
17 lines
615 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe VerificationMailer, type: :mailer do
|
|
let(:user) { create(:user) }
|
|
|
|
describe "#account_ownership_verification_email" do
|
|
it "works correctly" do
|
|
email = described_class.with(user_id: user.id).account_ownership_verification_email
|
|
|
|
expect(email.subject).not_to be_nil
|
|
expect(email.to).to eq([user.email])
|
|
expect(email.from).to eq([SiteConfig.email_addresses[:default]])
|
|
from = "#{Settings::Community.community_name} Email Verification <#{SiteConfig.email_addresses[:default]}>"
|
|
expect(email["from"].value).to eq(from)
|
|
end
|
|
end
|
|
end
|