Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Falleiro committed May 3, 2021
1 parent 5a21e3b commit a02aec2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/lob/postcard_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ defmodule Lob.PostcardTest do
assert Enum.member?(headers, {"X-Rate-Limit-Limit", "150"})
end

test "creates a postcard with from address params", %{sample_address: sample_address, sample_postcard: sample_postcard, sample_address: sample_address} do
test "creates a postcard with from address params", %{sample_address: sample_address, sample_postcard: sample_postcard} do
{:ok, created_address, _headers} = Address.create(sample_address)

{:ok, created_postcard, headers} =
Expand Down
5 changes: 4 additions & 1 deletion test/lob/self_mailer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ defmodule Lob.SelfMailerTest do
assert Enum.member?(headers, {"X-Rate-Limit-Limit", "150"})
end

test "creates a self mailer with from address params", %{sample_address: sample_address, sample_self_mailer: sample_self_mailer, sample_address: sample_address} do
test "creates a self mailer with from address params", %{sample_address: sample_address, sample_self_mailer: sample_self_mailer} do
{:ok, created_address, _headers} = Address.create(sample_address)

{:ok, created_self_mailer, headers} =
Expand Down Expand Up @@ -138,6 +138,9 @@ defmodule Lob.SelfMailerTest do
SelfMailer.create(%{
description: sample_self_mailer.description,
to: created_address.id,
metadata: %{
"campaign" => "LOB-TEST"
},
outside: %{local_path: "test/assets/sfm-6x18-outside.pdf"},
inside: %{local_path: "test/assets/sfm-6x18-inside.pdf"}
})
Expand Down

0 comments on commit a02aec2

Please sign in to comment.