summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-12-09 00:45:33 +0000
committerGo MAEDA <maeda@farend.jp>2024-12-09 00:45:33 +0000
commite6f8fe77cbe4dea161929655046de87ddd729414 (patch)
treeca4be0925379aaea897d04d8f5f51da5ddb8a057
parent40e32861c770828669b1a4e9da31abab9e32f956 (diff)
downloadredmine-e6f8fe77cbe4dea161929655046de87ddd729414.tar.gz
redmine-e6f8fe77cbe4dea161929655046de87ddd729414.zip
Fix random test failure in IssueTest due to unsorted expected_statuses (#41951).
Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23370 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/issue_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 5e2e702b1..28bb33964 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -889,7 +889,7 @@ class IssueTest < ActiveSupport::TestCase
WorkflowTransition.create!(:role_id => 2, :tracker_id => 1, :old_status_id => 1, :new_status_id => 3)
# status 3 is not displayed
- expected_statuses = IssueStatus.where(:id => [1, 2])
+ expected_statuses = IssueStatus.where(:id => [1, 2]).order(:id)
admin = User.find(1)
assert_equal expected_statuses, issue.new_statuses_allowed_to(admin)