File obs-server-2.10-0110-Expect-dates-as-as_json-expects-them.patch of Package obs-server

From 290b09a4fc426feab3392367fc2b76be00656bcd Mon Sep 17 00:00:00 2001
From: Stephan Kulow <coolo@suse.de>
Date: Sat, 23 Nov 2019 11:06:40 +0100
Subject: [PATCH] Expect dates as `as_json` expects them

Increases compatibility with rails6
---
 src/api/spec/models/bs_request_spec.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/spec/models/bs_request_spec.rb b/src/api/spec/models/bs_request_spec.rb
index 62cdf4707f..a3d56f6094 100644
--- a/src/api/spec/models/bs_request_spec.rb
+++ b/src/api/spec/models/bs_request_spec.rb
@@ -640,8 +640,8 @@ RSpec.describe BsRequest, vcr: true do
         'state' => 'new',
         'request_type' => 'submit',
         'priority' => 'moderate',
-        'created_at' => submit_request.created_at,
-        'updated_at' => submit_request.updated_at,
+        'created_at' => submit_request.created_at.as_json,
+        'updated_at' => submit_request.updated_at.as_json,
         'superseded_by' => delete_request.id,
         'superseded_by_id' => delete_request.id
       )
-- 
2.31.1