summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-10-16 15:16:18 +0000
committerGo MAEDA <maeda@farend.jp>2023-10-16 15:16:18 +0000
commit21541b250cb26128c2bac43f667bfc5c5dbcc7be (patch)
tree87f39d084a54487b1688c8e22e1cd7e6b52ed07d /test
parentf7b3f4ae5892180b8891805f9ab65be4217c8c61 (diff)
downloadredmine-21541b250cb26128c2bac43f667bfc5c5dbcc7be.tar.gz
redmine-21541b250cb26128c2bac43f667bfc5c5dbcc7be.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/unit/watcher_test.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/unit/watcher_test.rb b/test/unit/watcher_test.rb
index f5ea51496..10023787f 100644
--- a/test/unit/watcher_test.rb
+++ b/test/unit/watcher_test.rb
@@ -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