mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Revert r22342 as it became unnecessary after the addition of the :user_preferences fixture to WatcherTest in r22350 (#38238).
git-svn-id: https://svn.redmine.org/redmine/trunk@22351 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f7b3f4ae58
commit
21541b250c
@ -110,9 +110,7 @@ class WatcherTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_watcher_user_ids_should_make_ids_uniq
|
||||
author = User.find(2)
|
||||
author.pref.auto_watch_on = []
|
||||
issue = Issue.new(:project => Project.find(1), :tracker_id => 1, :subject => "test", :author => author)
|
||||
issue = Issue.new(:project => Project.find(1), :tracker_id => 1, :subject => "test", :author => User.find(2))
|
||||
issue.watcher_user_ids = ['1', '3', '1']
|
||||
issue.save!
|
||||
assert_equal 2, issue.watchers.count
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user