@@ -60,15 +60,15 class WatcherTest < ActiveSupport::TestCase | |||
|
60 | 60 | assert @issue.watcher_recipients.empty? |
|
61 | 61 | assert @issue.add_watcher(@user) |
|
62 | 62 | |
|
63 |
@user.mail_notification = |
|
|
64 |
@user.save |
|
|
63 | @user.mail_notification = 'all' | |
|
64 | @user.save! | |
|
65 | 65 | @issue.reload |
|
66 | 66 | assert @issue.watcher_recipients.include?(@user.mail) |
|
67 | 67 | |
|
68 |
@user.mail_notification = |
|
|
69 |
@user.save |
|
|
68 | @user.mail_notification = 'none' | |
|
69 | @user.save! | |
|
70 | 70 | @issue.reload |
|
71 | assert @issue.watcher_recipients.include?(@user.mail) | |
|
71 | assert !@issue.watcher_recipients.include?(@user.mail) | |
|
72 | 72 | end |
|
73 | 73 | |
|
74 | 74 | def test_unwatch |
General Comments 0
You need to be logged in to leave comments.
Login now