Fix #4540: Demotion sends "You have been promoted" dmail.

Change message to "Your account has been updated". It's possible for a
user to both gain and lose permissions at the same time, so just say
their account has been updated to make it easier.
This commit is contained in:
evazion
2020-07-13 18:42:44 -05:00
parent 0b52b1622f
commit 85f464df83
2 changed files with 2 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ class UserTest < ActiveSupport::TestCase
@user.promote_to!(User::Levels::GOLD)
end
assert(@user.dmails.exists?(from: bot, to: @user, title: "You have been promoted"))
assert(@user.dmails.exists?(from: bot, to: @user, title: "Your account has been updated"))
refute(@user.dmails.exists?(from: bot, to: @user, title: "Your user record has been updated"))
end
end