Skip to content

Commit

Permalink
Update tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Oct 29, 2024
1 parent 868aa26 commit 181e9b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/fixtures/message_object_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ two:
message_object: ssd_main_general_two_form
blob: MyText

main_draft:
message_object: ssd_main_draft_form
blob: <GeneralAgenda xmlns="http://schemas.gov.sk/form/App.GeneralAgenda/1.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><subject>predmet</subject><text>text</text></GeneralAgenda>

draft_two:
message_object: ssd_main_general_draft_two_form
blob: <GeneralAgenda xmlns="http://schemas.gov.sk/form/App.GeneralAgenda/1.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><subject>predmet</subject><text>text</text></GeneralAgenda>
Expand Down
6 changes: 6 additions & 0 deletions test/fixtures/message_objects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/models/message_object_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 181e9b1

Please sign in to comment.