mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
don't put missing notifications in the stream for tests.
This commit is contained in:
parent
81733eb885
commit
709ab731c7
1 changed files with 4 additions and 2 deletions
|
@ -187,16 +187,18 @@ describe Notification do
|
|||
it 'correctly updates the read state' do
|
||||
user = Fabricate(:user)
|
||||
|
||||
t = Fabricate(:topic)
|
||||
|
||||
Notification.create!(read: false,
|
||||
user_id: user.id,
|
||||
topic_id: 2,
|
||||
topic_id: t.id,
|
||||
post_number: 1,
|
||||
data: '{}',
|
||||
notification_type: Notification.types[:private_message])
|
||||
|
||||
other = Notification.create!(read: false,
|
||||
user_id: user.id,
|
||||
topic_id: 2,
|
||||
topic_id: t.id,
|
||||
post_number: 1,
|
||||
data: '{}',
|
||||
notification_type: Notification.types[:mentioned])
|
||||
|
|
Loading…
Reference in a new issue