From 58eea78b68dee45a6f6b9c1df78d0126e189b05e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Thu, 16 Sep 2021 15:55:32 +0200 Subject: [PATCH] Fix digest mail spec --- .../notifications/digest_mail_spec.rb | 38 +++++-------------- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/spec/features/notifications/digest_mail_spec.rb b/spec/features/notifications/digest_mail_spec.rb index 70fa9d97f9..32cc5a2453 100644 --- a/spec/features/notifications/digest_mail_spec.rb +++ b/spec/features/notifications/digest_mail_spec.rb @@ -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