fixed errors found by tests; fixed tests
This commit is contained in:
parent
42c7a49e88
commit
6c5d6ce046
5 changed files with 93 additions and 37 deletions
test/support/fixtures
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue