mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-04 21:01:27 -05:00
18 lines
558 B
Ruby
18 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
|