mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
Fixed: watchers selection lost when issue creation fails (#5406). #watched_by? was fixed in order to work with #watcher_user_ids= used in controllers on unsaved objects.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3705 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user