From 181e9b10443c33573be15d115ae2e1e937be1a92 Mon Sep 17 00:00:00 2001 From: luciajanikova <19lucia99@gmail.com> Date: Tue, 29 Oct 2024 09:40:29 +0100 Subject: [PATCH] Update tests after merge --- test/fixtures/message_object_data.yml | 4 ++++ test/fixtures/message_objects.yml | 6 ++++++ test/models/message_object_test.rb | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/test/fixtures/message_object_data.yml b/test/fixtures/message_object_data.yml index dc7c8cf0..b392fe4a 100644 --- a/test/fixtures/message_object_data.yml +++ b/test/fixtures/message_object_data.yml @@ -8,6 +8,10 @@ two: message_object: ssd_main_general_two_form blob: MyText +main_draft: + message_object: ssd_main_draft_form + blob: predmettext + draft_two: message_object: ssd_main_general_draft_two_form blob: predmettext diff --git a/test/fixtures/message_objects.yml b/test/fixtures/message_objects.yml index 711fa143..7a9739dd 100644 --- a/test/fixtures/message_objects.yml +++ b/test/fixtures/message_objects.yml @@ -49,6 +49,12 @@ ssd_main_fs_one_form: mimetype: application/x-eform-xml object_type: FORM +ssd_main_draft_form: + message: ssd_main_draft + name: MyString + mimetype: application/x-eform-xml + object_type: FORM + ssd_main_draft_to_be_signed_draft_one_form: uuid: 6a0f716a-c284-4680-ad7e-ed2bde769dd2 message: ssd_main_draft_to_be_signed_draft_one diff --git a/test/models/message_object_test.rb b/test/models/message_object_test.rb index ed4e361a..f3e10914 100644 --- a/test/models/message_object_test.rb +++ b/test/models/message_object_test.rb @@ -207,7 +207,7 @@ class MessageObjectTest < ActiveSupport::TestCase end test "before_destroy callback deletes SignatureRequested Tag from message thread (if no more objects with SignatureRequestedFromTag present)" do - message_object = message_objects(:ssd_main_draft_to_be_signed2_draft_form) + message_object = message_objects(:ssd_main_draft_form) message_thread = message_object.message.thread message_object.destroy