2013-02-05 14:16:51 -05:00
|
|
|
Fabricator(:notification) do
|
2013-03-01 07:07:44 -05:00
|
|
|
notification_type Notification.types[:mentioned]
|
2013-02-05 14:16:51 -05:00
|
|
|
data '{"poison":"ivy","killer":"croc"}'
|
|
|
|
user
|
2017-07-27 21:20:09 -04:00
|
|
|
topic { |attrs| Fabricate(:topic, user: attrs[:user]) }
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
Fabricator(:quote_notification, from: :notification) do
|
2013-03-01 07:07:44 -05:00
|
|
|
notification_type Notification.types[:quoted]
|
2013-02-05 14:16:51 -05:00
|
|
|
user
|
2017-07-27 21:20:09 -04:00
|
|
|
topic { |attrs| Fabricate(:topic, user: attrs[:user]) }
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
Fabricator(:private_message_notification, from: :notification) do
|
2013-03-01 07:07:44 -05:00
|
|
|
notification_type Notification.types[:private_message]
|
2013-02-05 14:16:51 -05:00
|
|
|
user
|
2017-07-27 21:20:09 -04:00
|
|
|
topic { |attrs| Fabricate(:topic, user: attrs[:user]) }
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|