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
9cda5b89
Commit
9cda5b89
authored
Jul 01, 2017
by
lain
Browse files
Fix test.
parent
ac04ba24
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/user_test.exs
View file @
9cda5b89
...
...
@@ -178,7 +178,7 @@ test "it has required fields" do
end
test
"it restricts some sizes"
do
[
bio:
1
000
,
name:
100
]
[
bio:
5
000
,
name:
100
]
|>
Enum
.
each
(
fn
({
field
,
size
})
->
string
=
String
.
pad_leading
(
"."
,
size
)
cs
=
User
.
remote_user_creation
(
Map
.
put
(
@valid_remote
,
field
,
string
))
...
...
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