summaryrefslogtreecommitdiffstats
path: root/test/functional
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/functional
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/functional')
-rw-r--r--test/functional/issues_controller_test.rb1
-rw-r--r--test/functional/versions_controller_test.rb1
2 files changed, 0 insertions, 2 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 4d8c00861..a10abbd12 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -8306,7 +8306,6 @@ class IssuesControllerTest < Redmine::ControllerTest
end
def test_destroy_child_issue
- User.current = User.find(1)
parent = Issue.create!(:project_id => 1, :author_id => 1, :tracker_id => 1, :subject => 'Parent Issue')
child = Issue.create!(:project_id => 1, :author_id => 1, :tracker_id => 1, :subject => 'Child Issue', :parent_issue_id => parent.id)
assert child.is_descendant_of?(parent.reload)
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index 4e3d07d95..fdd767560 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -103,7 +103,6 @@ class VersionsControllerTest < Redmine::ControllerTest
end
def test_index_should_show_issue_assignee
- User.current = User.find_by_login('jsmith')
with_settings :gravatar_enabled => '1' do
Issue.generate!(:project_id => 3, :fixed_version_id => 4, :assigned_to => User.find_by_login('jsmith'))
Issue.generate!(:project_id => 3, :fixed_version_id => 4)