projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add OpenAPI spec for ListController
[akkoma]
/
test
/
web
/
mastodon_api
/
mastodon_api_test.exs
diff --git
a/test/web/mastodon_api/mastodon_api_test.exs
b/test/web/mastodon_api/mastodon_api_test.exs
index 7fcb2bd55ddf05a7dd86bf7edc1f31de874cc90c..cb971806abf402df60fd9b28ae1525fa589158de 100644
(file)
--- a/
test/web/mastodon_api/mastodon_api_test.exs
+++ b/
test/web/mastodon_api/mastodon_api_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.MastodonAPI.MastodonAPITest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.MastodonAPI.MastodonAPITest do
@@
-14,11
+14,11
@@
defmodule Pleroma.Web.MastodonAPI.MastodonAPITest do
import Pleroma.Factory
describe "follow/3" do
import Pleroma.Factory
describe "follow/3" do
- test "returns error when
user
deactivated" do
+ test "returns error when
followed user is
deactivated" do
follower = insert(:user)
follower = insert(:user)
- user = insert(:user, local: true,
info: %{deactivated: true}
)
+ user = insert(:user, local: true,
deactivated: true
)
{:error, error} = MastodonAPI.follow(follower, user)
{:error, error} = MastodonAPI.follow(follower, user)
- assert error == "Could not follow user:
You are
deactivated."
+ assert error == "Could not follow user:
#{user.nickname} is
deactivated."
end
test "following for user" do
end
test "following for user" do