projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
956f3c7
)
tests: add regression test for bug #408
author
William Pitcock
<nenolod@dereferenced.org>
Wed, 5 Dec 2018 03:41:32 +0000
(
03:41
+0000)
committer
William Pitcock
<nenolod@dereferenced.org>
Wed, 5 Dec 2018 03:41:32 +0000
(
03:41
+0000)
test/user_test.exs
patch
|
blob
|
history
diff --git
a/test/user_test.exs
b/test/user_test.exs
index d097eb17128c6cb13605df393d472c304a983fe5..3d2f7f4e056b364203e0ee394730105c5c7558e6 100644
(file)
--- a/
test/user_test.exs
+++ b/
test/user_test.exs
@@
-149,6
+149,18
@@
defmodule Pleroma.UserTest 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