Fix digest mail spec

pull/9636/head
Benjamin Bädorf 3 years ago
parent 099f9f80af
commit 58eea78b68
No known key found for this signature in database
GPG Key ID: 069CA2D117AB5CCF
  1. 38
      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

Loading…
Cancel
Save