Skip to content

Commit

Permalink
fix failing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tarzan committed Sep 12, 2024
1 parent f01afae commit 4101cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/bamboo/email_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ defmodule Bamboo.EmailTest do
attachment = %Bamboo.Attachment{filename: nil, data: "content"}

msg =
"You must provide a filename for the attachment, instead got: %Bamboo.Attachment{content_id: nil, content_type: nil, data: \"content\", filename: nil, path: nil}"
"You must provide a filename for the attachment, instead got: %Bamboo.Attachment{filename: nil, content_type: nil, path: nil, data: \"content\", content_id: nil}"

assert_raise RuntimeError, msg, fn ->
new_email() |> put_attachment(attachment)
Expand All @@ -103,7 +103,7 @@ defmodule Bamboo.EmailTest do
attachment = %Bamboo.Attachment{filename: "attachment.docx", data: nil}

msg =
"The attachment must contain data, instead got: %Bamboo.Attachment{content_id: nil, content_type: nil, data: nil, filename: \"attachment.docx\", path: nil}"
"The attachment must contain data, instead got: %Bamboo.Attachment{filename: \"attachment.docx\", content_type: nil, path: nil, data: nil, content_id: nil}"

assert_raise RuntimeError, msg, fn ->
new_email() |> put_attachment(attachment)
Expand Down

0 comments on commit 4101cad

Please sign in to comment.