From 81b09076fc4925b24de8231df846b76c99bfef47 Mon Sep 17 00:00:00 2001 From: Dusan Vuckovic Date: Mon, 2 Sep 2024 10:23:10 +0100 Subject: [PATCH] Maintenance: Stabilize checklist query test. --- spec/graphql/gql/queries/ticket/checklist_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/graphql/gql/queries/ticket/checklist_spec.rb b/spec/graphql/gql/queries/ticket/checklist_spec.rb index f92b27769489..7e05239aaa34 100644 --- a/spec/graphql/gql/queries/ticket/checklist_spec.rb +++ b/spec/graphql/gql/queries/ticket/checklist_spec.rb @@ -51,7 +51,7 @@ 'name' => checklist.name, 'completed' => false, 'incomplete' => 5, - 'items' => checklist.items.map do |item| + 'items' => checklist.items.sort_by(&:id).map do |item| { 'id' => gql.id(item), 'text' => item.text,