Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
0f061bea
Commit
0f061bea
authored
Dec 05, 2018
by
kaniini
Browse files
tests: add regression test for bug
#408
parent
956f3c75
Pipeline
#4941
passed with stages
in 5 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/user_test.exs
View file @
0f061bea
...
@@ -149,6 +149,18 @@ test "it sets the password_hash, ap_id and following fields" do
...
@@ -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"
assert
changeset
.
changes
.
follower_address
==
"
#{
changeset
.
changes
.
ap_id
}
/followers"
end
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
end
describe
"fetching a user from nickname or trying to build one"
do
describe
"fetching a user from nickname or trying to build one"
do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment