Skip to content
Snippets Groups Projects
Commit 0f061bea authored by kaniini's avatar kaniini
Browse files

tests: add regression test for bug #408

parent 956f3c75
No related branches found
No related tags found
1 merge request!500ensure user info is populated when registering users
Pipeline #
......@@ -149,6 +149,18 @@ test "it sets the password_hash, ap_id and following fields" do
assert changeset.changes.follower_address == "#{changeset.changes.ap_id}/followers"
end
test "it ensures info is not nil" do
changeset = User.register_changeset(%User{}, @full_user_data)
assert changeset.valid?
{:ok, user} =
changeset
|> Repo.insert()
refute is_nil(user.info)
end
end
describe "fetching a user from nickname or trying to build one" do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment