fix regression in visible notification detection

This commit is contained in:
Sam
2015-06-23 06:14:22 +10:00
parent 4c4b20574d
commit 9f88d6e252
2 changed files with 9 additions and 1 deletions

View File

@@ -277,6 +277,13 @@ describe Notification do
fab(Notification.types[:liked], true)
end
it 'correctly finds visible notifications' do
pm
expect(Notification.visible.count).to eq(1)
post.topic.trash!
expect(Notification.visible.count).to eq(0)
end
it 'orders stuff correctly' do
a = unread_pm
regular