mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:28:07 +08:00
FIX: if user undos like, and relikes notify
FEATURE: roll up likes for notify on all likes
This commit is contained in:
@ -21,11 +21,8 @@ describe PostAlertObserver do
|
||||
end
|
||||
|
||||
context 'when removing a liked post' do
|
||||
before do
|
||||
PostAction.act(evil_trout, post, PostActionType.types[:like])
|
||||
end
|
||||
|
||||
it 'removes a notification' do
|
||||
PostAction.act(evil_trout, post, PostActionType.types[:like])
|
||||
expect {
|
||||
PostAction.remove_act(evil_trout, post, PostActionType.types[:like])
|
||||
}.to change(Notification, :count).by(-1)
|
||||
|
Reference in New Issue
Block a user