Project

General

Profile

Actions

Patch #41951

closed

Fix random test failure in IssueTest due to unsorted expected_statuses

Added by Go MAEDA 11 days ago. Updated 11 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

 Failure:
IssueTest#test_new_statuses_allowed_to_should_only_return_transitions_of_considered_workflows [test/unit/issue_test.rb:895]:
--- expected
+++ actual
@@ -1 +1 @@
-#<ActiveRecord::Relation [#<IssueStatus id: 2, name: "Assigned", is_closed: false, position: 2, default_done_ratio: nil, description: "Description for Assigned issue status">, #<IssueStatus id: 1, name: "New", is_closed: false, position: 1, default_done_ratio: nil, description: "Description for New issue status">]>
+[#<IssueStatus id: 1, name: "New", is_closed: false, position: 1, default_done_ratio: nil, description: "Description for New issue status">, #<IssueStatus id: 2, name: "Assigned", is_closed: false, position: 2, default_done_ratio: nil, description: "Description for Assigned issue status">]

bin/rails test test/unit/issue_test.rb:879

Files

Actions

Also available in: Atom PDF