mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 07:25:30 +02:00
Change the default notification option from only_my_events to only_assigned (#39500).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22504 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -3017,7 +3017,7 @@ class IssueTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
test "Issue#recipients should include the author if the author is active" do
|
||||
issue = Issue.generate!(:author => User.generate!)
|
||||
issue = Issue.generate!(:author => User.generate!(:mail_notification => 'only_my_events'))
|
||||
assert issue.author, "No author set for Issue"
|
||||
assert issue.recipients.include?(issue.author.mail)
|
||||
end
|
||||
|
||||
@@ -192,7 +192,7 @@ class UserTest < ActiveSupport::TestCase
|
||||
|
||||
def test_user_before_create_should_set_the_mail_notification_to_the_default_setting
|
||||
user1 = User.generate!
|
||||
assert_equal 'only_my_events', user1.mail_notification
|
||||
assert_equal 'only_assigned', user1.mail_notification
|
||||
with_settings :default_notification_option => 'all' do
|
||||
user2 = User.generate!
|
||||
assert_equal 'all', user2.mail_notification
|
||||
|
||||
Reference in New Issue
Block a user