From 49008c5da41274a5d4974260806ade55fd1729a3 Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Mon, 3 Feb 2020 16:04:19 +0100
Subject: [PATCH] tests json (serializing): fixed
---
src/tests/json_tests.cr | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/tests/json_tests.cr b/src/tests/json_tests.cr
index d0697d6..e0a586f 100644
--- a/src/tests/json_tests.cr
+++ b/src/tests/json_tests.cr
@@ -17,16 +17,16 @@ end
token = FileStorage::Token.new 1002, "karchnu"
-requests = Array(FileStorage::Message::Request).new
+requests = Array(FileStorage::UploadRequest).new
files_info.each do |file_info|
- requests << FileStorage::Message::UploadRequest.new file_info
+ requests << FileStorage::UploadRequest.new file_info
end
-authentication_message = FileStorage::Message::Authentication.new token, requests
+authentication_message = FileStorage::Authentication.new token, requests
# TODO, TEST, DEBUG, XXX, FIXME
pp! authentication_message.to_json
-am_from_json = FileStorage::Message::Authentication.from_json authentication_message.to_json
+am_from_json = FileStorage::Authentication.from_json authentication_message.to_json
pp! am_from_json