From edc3224576a1484a6931635c95cf0ec5d3e41fb2 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 27 Sep 2022 09:56:30 +0000 Subject: [PATCH] Merged r21854 from trunk to 5.0-stable (#33953). git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21857 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/repositories_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb index 9ba464e67..e79ddda4f 100644 --- a/test/functional/repositories_controller_test.rb +++ b/test/functional/repositories_controller_test.rb @@ -200,7 +200,7 @@ class RepositoriesControllerTest < Redmine::RepositoryControllerTest repos.reload assert_equal false, repos.exists?(:is_default => true) - repository = repos.first + repository = repos.sort.first # rubocop:disable Style/RedundantSort @request.session[:user_id] = 2 get(:show, :params => {:id => 1}) -- 2.39.5