fixed errors found by tests; fixed tests

This commit is contained in:
Adam Piontek 2021-03-04 23:15:20 -05:00
parent 42c7a49e88
commit 6c5d6ce046
5 changed files with 93 additions and 37 deletions
test/support/fixtures

View file

@ -36,7 +36,7 @@ defmodule Bones73k.AccountsFixtures do
# {:ok, captured} = fun.(&"[TOKEN]#{&1}[TOKEN]")
# [_, token, _] = String.split(captured.body, "[TOKEN]")
# token
%Bamboo.Email{} = email = fun.(&"[TOKEN]#{&1}[TOKEN]")
{:ok, %Bamboo.Email{} = email} = fun.(&"[TOKEN]#{&1}[TOKEN]")
[_, token, _] = String.split(email.text_body, "[TOKEN]")
token
end