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)