summaryrefslogtreecommitdiffstats
path: root/test/unit/watcher_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/watcher_test.rb')
-rw-r--r--test/unit/watcher_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/watcher_test.rb b/test/unit/watcher_test.rb
index db73f8ccc..d0fe588bf 100644
--- a/test/unit/watcher_test.rb
+++ b/test/unit/watcher_test.rb
@@ -47,6 +47,12 @@ class WatcherTest < ActiveSupport::TestCase
assert Issue.watched_by(@user).include?(@issue)
end
+ def test_watcher_user_ids
+ issue = Issue.new
+ issue.watcher_user_ids = ['1', '3']
+ assert issue.watched_by?(User.find(1))
+ end
+
def test_recipients
@issue.watchers.delete_all
@issue.reload