From 7ec43b59c6ac0db7f7466616199882f806e8d9ae Mon Sep 17 00:00:00 2001 From: Klaus Zanders Date: Tue, 28 May 2024 15:27:08 +0200 Subject: [PATCH] Reload work package before comparing its time values --- modules/bim/spec/requests/api/bcf/v2_1/topics_api_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/bim/spec/requests/api/bcf/v2_1/topics_api_spec.rb b/modules/bim/spec/requests/api/bcf/v2_1/topics_api_spec.rb index ec068c9c42a6..918736f945cf 100644 --- a/modules/bim/spec/requests/api/bcf/v2_1/topics_api_spec.rb +++ b/modules/bim/spec/requests/api/bcf/v2_1/topics_api_spec.rb @@ -586,7 +586,7 @@ def expected_body_for_bcf_issue( description: nil, base: nil ) - work_package = base || issue.work_package + work_package = (base || issue.work_package).reload { guid: issue&.uuid, @@ -603,9 +603,9 @@ def expected_body_for_bcf_issue( due_date: due_date || base&.due_date, stage: nil, creation_author: creation_author_mail, - creation_date: work_package&.created_at&.iso8601(3), + creation_date: work_package&.created_at, modified_author: modified_author_mail, - modified_date: work_package&.updated_at&.iso8601(3), + modified_date: work_package&.updated_at, description: description || base&.description, authorization: { topic_status: [(base && base.status.name) || default_status.name],