FIX: Clear notification of skipped narrative bot PM (#10792)

Resets a new user's PM count in their badge after skipping user tips.
This commit is contained in:
Penar Musaraj
2020-10-01 20:32:45 -04:00
committed by GitHub
parent 5cf411c3ae
commit d6038ac666
2 changed files with 11 additions and 0 deletions

View File

@ -123,6 +123,8 @@ describe User do
user.user_option.save!
}.to change { Topic.count }.by(-1)
.and change { UserHistory.count }.by(0)
.and change { user.unread_high_priority_notifications }.by(-1)
.and change { user.notifications.count }.by(-1)
end
end