Expected false to be truthy

This commit is contained in:
Karel Pičman 2023-11-15 12:48:02 +01:00
parent 16beb8ddbe
commit 9cd943f056
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -105,8 +105,8 @@ class DmsfMailerTest < RedmineDmsf::Test::UnitTest
def test_get_notify_users
with_settings notified_events: ['dmsf_legacy_notifications'] do
puts ">>> #{Setting.notified_events}"
puts ">>> #{@file1.notify?}"
puts ">>> Setting.notified_events: #{Setting.notified_events}"
puts ">>> @file1.notify?: #{@file1.notify?}"
users = DmsfMailer.get_notify_users(@project1, @file1)
assert users.present?
end