This commit is contained in:
@ -38,8 +38,9 @@ defmodule Memex.Fixtures do
|
||||
def extract_user_token(fun) do
|
||||
%{args: %{attrs: attrs, email: email_key, user_id: user_id}} = fun.(&"[TOKEN]#{&1}[TOKEN]")
|
||||
|
||||
# convert atoms to string keys
|
||||
attrs = attrs |> Map.new(fn {atom_key, value} -> {atom_key |> Atom.to_string(), value} end)
|
||||
attrs =
|
||||
attrs
|
||||
|> Map.new(fn {key, value} -> {Atom.to_string(key), value} end)
|
||||
|
||||
email =
|
||||
email_key
|
||||
|
Reference in New Issue
Block a user