Expected false to be truthy
This commit is contained in:
parent
9cd943f056
commit
763871577c
@ -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"
|
||||
|
||||
@ -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?}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user