1
0
Fork 0
forked from mirrors/akkoma

tests: add regression test for bug #408

This commit is contained in:
William Pitcock 2018-12-05 03:41:32 +00:00
parent 956f3c75ca
commit 0f061bea0c

View file

@ -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