From 9a6d628dbd454342eef4229957ccc5172cd3fe15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 20 Mar 2024 08:54:00 +0100 Subject: [PATCH] Fix resolution of timestamp --- spec/services/projects/create_service_integration_spec.rb | 2 +- .../services/work_packages/create_service_integration_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/services/projects/create_service_integration_spec.rb b/spec/services/projects/create_service_integration_spec.rb index 83111ca45015..d1b13119ed5d 100644 --- a/spec/services/projects/create_service_integration_spec.rb +++ b/spec/services/projects/create_service_integration_spec.rb @@ -55,7 +55,7 @@ .to be_success new_project.reload - expect(new_project.created_at).to eq(created_at) + expect(new_project.created_at).to be_within(1.second).of created_at end end diff --git a/spec/services/work_packages/create_service_integration_spec.rb b/spec/services/work_packages/create_service_integration_spec.rb index e2e45dbd7809..7c9b1373706c 100644 --- a/spec/services/work_packages/create_service_integration_spec.rb +++ b/spec/services/work_packages/create_service_integration_spec.rb @@ -248,8 +248,8 @@ expect(service_result) .to be_success - expect(new_work_package.created_at).to eq(created_at) - expect(new_work_package.updated_at).to eq(updated_at) + expect(new_work_package.created_at).to be_within(1.second).of(created_at) + expect(new_work_package.updated_at).to be_within(1.second).of(updated_at) end end