Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Dec 7, 2023
1 parent e0039a1 commit fbd6ff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/upvs/message_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def recipients
]
end

def create_message(message, author:, box:, recipient_uri:)
def create_message(message, author:, box:, recipient_name:, recipient_uri:)
message.update(
uuid: SecureRandom.uuid,
delivered_at: Time.current,
Expand Down
2 changes: 1 addition & 1 deletion test/models/upvs/message_template_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Upvs::MessageTemplateTest < ActiveSupport::TestCase
message_draft = MessageDraft.new
message_template = upvs_message_templates(:general_agenda)

message_template.create_message(message_draft, author: users(:basic), box: boxes(:ssd_main), recipient_uri: 'ico://sk/12345678')
message_template.create_message(message_draft, author: users(:basic), box: boxes(:ssd_main), recipient_name: 'Test OVM', recipient_uri: 'ico://sk/12345678')

message_draft.metadata['data'] = {
Predmet: 'Odpoveď',
Expand Down

0 comments on commit fbd6ff6

Please sign in to comment.