Expected false to be truthy

This commit is contained in:
Karel Pičman 2023-11-15 13:07:53 +01:00
parent 9cd943f056
commit 763871577c
2 changed files with 4 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class DmsfMailer < Mailer
puts ">>> nok1"
false
elsif notify_member.dmsf_mail_notification.nil?
puts ">>> notify_member.mail_notification: #{notify_member.mail_notification}"
puts ">>> notify_member.mail_notification: #{notify_member.dmsf_mail_notification}"
case notify_user.mail_notification
when 'all'
puts ">>> ok3"

View File

@ -104,6 +104,9 @@ class DmsfMailerTest < RedmineDmsf::Test::UnitTest
end
def test_get_notify_users
m1 = Member.find 1
m1.dmsf_mail_notification = true
m1.save
with_settings notified_events: ['dmsf_legacy_notifications'] do
puts ">>> Setting.notified_events: #{Setting.notified_events}"
puts ">>> @file1.notify?: #{@file1.notify?}"