OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/spec/factories/notification_setting_factor...

28 lines
648 B

FactoryBot.define do
factory :notification_setting do
channel { :mail }
all { false }
involved { true }
mentioned { true }
watched { true }
work_package_commented { false }
work_package_created { false }
work_package_processed { false }
work_package_prioritized { false }
work_package_scheduled { false }
project { nil } # Default settings
user
factory :mail_notification_setting do
channel { :mail }
end
factory :mail_digest_notification_setting do
channel { :mail_digest }
end
factory :in_app_notification_setting do
channel { :in_app }
end
end
end