|
|
|
@ -15,36 +15,16 @@ describe "Digest email", type: :feature, js: true do |
|
|
|
|
current_user do |
|
|
|
|
FactoryBot.create :user, |
|
|
|
|
notification_settings: [ |
|
|
|
|
FactoryBot.build(:mail_notification_setting, |
|
|
|
|
involved: false, |
|
|
|
|
watched: false, |
|
|
|
|
mentioned: true, |
|
|
|
|
work_package_commented: false, |
|
|
|
|
work_package_created: false, |
|
|
|
|
work_package_processed: false, |
|
|
|
|
work_package_prioritized: false, |
|
|
|
|
work_package_scheduled: false, |
|
|
|
|
all: false), |
|
|
|
|
FactoryBot.build(:in_app_notification_setting, |
|
|
|
|
involved: false, |
|
|
|
|
watched: false, |
|
|
|
|
mentioned: true, |
|
|
|
|
work_package_commented: false, |
|
|
|
|
work_package_created: false, |
|
|
|
|
work_package_processed: false, |
|
|
|
|
work_package_prioritized: false, |
|
|
|
|
work_package_scheduled: false, |
|
|
|
|
all: false), |
|
|
|
|
FactoryBot.build(:mail_digest_notification_setting, |
|
|
|
|
involved: false, |
|
|
|
|
watched: false, |
|
|
|
|
mentioned: false, |
|
|
|
|
work_package_commented: false, |
|
|
|
|
work_package_created: false, |
|
|
|
|
work_package_processed: false, |
|
|
|
|
work_package_prioritized: false, |
|
|
|
|
work_package_scheduled: false, |
|
|
|
|
all: false) |
|
|
|
|
involved: true, |
|
|
|
|
watched: true, |
|
|
|
|
mentioned: true, |
|
|
|
|
work_package_commented: true, |
|
|
|
|
work_package_created: true, |
|
|
|
|
work_package_processed: true, |
|
|
|
|
work_package_prioritized: true, |
|
|
|
|
work_package_scheduled: true, |
|
|
|
|
all: true) |
|
|
|
|
] |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|