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
33a5d0a2
Commit
33a5d0a2
authored
Feb 12, 2018
by
lain
Browse files
Fix some test warnings.
parent
91928b06
Pipeline
#712
passed with stage
in 2 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/web/mastodon_api/mastodon_api_controller_test.exs
View file @
33a5d0a2
...
...
@@ -530,7 +530,7 @@ test "returns the favorites of a user", %{conn: conn} do
end
describe
"updating credentials"
do
test
"updates the user's bio"
do
test
"updates the user's bio"
,
%{
conn:
conn
}
do
user
=
insert
(
:user
)
conn
=
conn
...
...
@@ -541,7 +541,7 @@ test "updates the user's bio" do
assert
user
[
"note"
]
==
"I drink #cofe"
end
test
"updates the user's name"
do
test
"updates the user's name"
,
%{
conn:
conn
}
do
user
=
insert
(
:user
)
conn
=
conn
...
...
@@ -552,7 +552,7 @@ test "updates the user's name" do
assert
user
[
"display_name"
]
==
"markorepairs"
end
test
"updates the user's avatar"
do
test
"updates the user's avatar"
,
%{
conn:
conn
}
do
user
=
insert
(
:user
)
new_avatar
=
%
Plug
.
Upload
{
content_type:
"image/jpg"
,
path:
Path
.
absname
(
"test/fixtures/image.jpg"
),
filename:
"an_image.jpg"
}
...
...
@@ -565,7 +565,7 @@ test "updates the user's avatar" do
assert
user
[
"avatar"
]
!=
"https://placehold.it/48x48"
end
test
"updates the user's banner"
do
test
"updates the user's banner"
,
%{
conn:
conn
}
do
user
=
insert
(
:user
)
new_header
=
%
Plug
.
Upload
{
content_type:
"image/jpg"
,
path:
Path
.
absname
(
"test/fixtures/image.jpg"
),
filename:
"an_image.jpg"
}
...
...
@@ -579,7 +579,7 @@ test "updates the user's banner" do
end
end
test
"get instance information"
do
test
"get instance information"
,
%{
conn:
conn
}
do
insert
(
:user
,
%{
local:
true
})
user
=
insert
(
:user
,
%{
local:
true
})
insert
(
:user
,
%{
local:
false
})
...
...
test/web/twitter_api/twitter_api_controller_test.exs
View file @
33a5d0a2
...
...
@@ -585,7 +585,7 @@ test "it returns a user's friends", %{conn: conn} do
end
describe
"POST /api/account/update_profile.json"
do
test
"it updates a user's profile"
do
test
"it updates a user's profile"
,
%{
conn:
conn
}
do
user
=
insert
(
:user
)
conn
=
conn
...
...
@@ -627,7 +627,7 @@ test "it returns search results", %{conn: conn} do
end
describe
"GET /api/statusnet/tags/timeline/:tag.json"
do
test
"it returns the tags timeline"
do
test
"it returns the tags timeline"
,
%{
conn:
conn
}
do
user
=
insert
(
:user
)
user_two
=
insert
(
:user
,
%{
nickname:
"shp@shitposter.club"
})
...
...
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