summaryrefslogtreecommitdiffstats
path: root/test/object_helpers.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-11-18 08:17:50 +0000
committerGo MAEDA <maeda@farend.jp>2022-11-18 08:17:50 +0000
commit0f2378c121ffe0987e1b998d4fb464eb8d813628 (patch)
tree3e3ec8e7cc25cc642793f59caa3852f0f5588b26 /test/object_helpers.rb
parent44c72fe7b0ee1921bc00c16ee1f1a328b1ab82e0 (diff)
downloadredmine-0f2378c121ffe0987e1b998d4fb464eb8d813628.tar.gz
redmine-0f2378c121ffe0987e1b998d4fb464eb8d813628.zip
Reverts r21958 and r21959 (#1739).
git-svn-id: https://svn.redmine.org/redmine/trunk@21960 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/object_helpers.rb')
-rw-r--r--test/object_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/object_helpers.rb b/test/object_helpers.rb
index a20afdc70..3900bc45d 100644
--- a/test/object_helpers.rb
+++ b/test/object_helpers.rb
@@ -95,7 +95,7 @@ module ObjectHelpers
issue.project ||= Project.find(1)
issue.tracker ||= issue.project.trackers.first
issue.subject = 'Generated' if issue.subject.blank?
- issue.author ||= (User.current || User.find(2))
+ issue.author ||= User.find(2)
yield issue if block_given?
issue
end