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...

24 lines
499 B

FactoryBot.define do
factory :notification_setting do
channel { :mail }
all { false }
involved { true }
mentioned { true }
watched { true }
work_package_commented { true }
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