Update trusted role email Subject (#11519)
This commit is contained in:
parent
2205f38261
commit
e454772128
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue