summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/issue_test.rb2
-rw-r--r--test/unit/user_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 14124f7bd..3957a7a60 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -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
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index 823365842..e89381a68 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -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