mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 14:35:48 +08:00
don't put missing notifications in the stream for tests.
This commit is contained in:
parent
81733eb885
commit
709ab731c7
|
@ -187,16 +187,18 @@ describe Notification do
|
||||||
it 'correctly updates the read state' do
|
it 'correctly updates the read state' do
|
||||||
user = Fabricate(:user)
|
user = Fabricate(:user)
|
||||||
|
|
||||||
|
t = Fabricate(:topic)
|
||||||
|
|
||||||
Notification.create!(read: false,
|
Notification.create!(read: false,
|
||||||
user_id: user.id,
|
user_id: user.id,
|
||||||
topic_id: 2,
|
topic_id: t.id,
|
||||||
post_number: 1,
|
post_number: 1,
|
||||||
data: '{}',
|
data: '{}',
|
||||||
notification_type: Notification.types[:private_message])
|
notification_type: Notification.types[:private_message])
|
||||||
|
|
||||||
other = Notification.create!(read: false,
|
other = Notification.create!(read: false,
|
||||||
user_id: user.id,
|
user_id: user.id,
|
||||||
topic_id: 2,
|
topic_id: t.id,
|
||||||
post_number: 1,
|
post_number: 1,
|
||||||
data: '{}',
|
data: '{}',
|
||||||
notification_type: Notification.types[:mentioned])
|
notification_type: Notification.types[:mentioned])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user