]> git.openstreetmap.org Git - rails.git/blob - test/factories/notifications.rb
Merge remote-tracking branch 'upstream/pull/7239'
[rails.git] / test / factories / notifications.rb
1 # frozen_string_literal: true
2
3 FactoryBot.define do
4   factory :changeset_comment_notification, :class => "ChangesetCommentNotifier::Notification" do
5     event :factory => :changeset_comment_notifier
6     recipient :factory => :user
7   end
8
9   factory :changeset_comment_notifier, :class => "ChangesetCommentNotifier" do
10     record :factory => :changeset_comment
11   end
12
13   factory :gpx_import_failure_notification, :class => "GpxImportFailureNotifier::Notification" do
14     event :factory => :gpx_import_failure_notifier
15     recipient :factory => :user
16   end
17
18   factory :gpx_import_failure_notifier, :class => "GpxImportFailureNotifier"
19 end