]> source.dussan.org Git - redmine.git/commitdiff
Merged r21854 from trunk to 5.0-stable (#33953).
authorGo MAEDA <maeda@farend.jp>
Tue, 27 Sep 2022 09:56:30 +0000 (09:56 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 27 Sep 2022 09:56:30 +0000 (09:56 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21857 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_controller_test.rb

index 9ba464e67c326866da129a56d04e936cf5e4c448..e79ddda4f0e4cd82343c6508c7cbb114f5bee182 100644 (file)
@@ -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})