mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 06:53:46 +08:00
19 lines
558 B
Ruby
19 lines
558 B
Ruby
Fabricator(:notification) do
|
|
notification_type Notification.types[:mentioned]
|
|
data '{"poison":"ivy","killer":"croc"}'
|
|
user
|
|
topic { |attrs| Fabricate(:topic, user: attrs[:user]) }
|
|
end
|
|
|
|
Fabricator(:quote_notification, from: :notification) do
|
|
notification_type Notification.types[:quoted]
|
|
user
|
|
topic { |attrs| Fabricate(:topic, user: attrs[:user]) }
|
|
end
|
|
|
|
Fabricator(:private_message_notification, from: :notification) do
|
|
notification_type Notification.types[:private_message]
|
|
user
|
|
topic { |attrs| Fabricate(:topic, user: attrs[:user]) }
|
|
end
|