From 0f2378c121ffe0987e1b998d4fb464eb8d813628 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 18 Nov 2022 08:17:50 +0000 Subject: Reverts r21958 and r21959 (#1739). git-svn-id: https://svn.redmine.org/redmine/trunk@21960 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 1 - test/functional/versions_controller_test.rb | 1 - 2 files changed, 2 deletions(-) (limited to 'test/functional') 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) -- cgit v1.2.3