Update trusted role email Subject (#11519)

This commit is contained in:
Molly Struve 2020-11-20 10:54:21 -05:00 committed by GitHub
parent 2205f38261
commit e454772128
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ class NotifyMailer < ApplicationMailer
def trusted_role_email
@user = params[:user]
subject = "You've been upgraded to #{SiteConfig.community_name} Community mod status!"
subject = "Congrats! You're now a \"trusted\" user on #{SiteConfig.community_name}!"
mail(to: @user.email, subject: subject)
end

View file

@ -469,7 +469,7 @@ RSpec.describe NotifyMailer, type: :mailer do
let(:email) { described_class.with(user: user).trusted_role_email }
it "renders proper subject" do
expected_subject = "You've been upgraded to #{SiteConfig.community_name} Community mod status!"
expected_subject = "Congrats! You're now a \"trusted\" user on #{SiteConfig.community_name}!"
expect(email.subject).to eq(expected_subject)
end