summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/mastodon_api_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-08-07 09:48:34 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-08-07 09:48:34 +0300
commit8e90cc58e7ec3f19f03d049ff541750f1ab4774e (patch)
treebe0a4346827a52fcdfe034c489ede989320a24d2 /test/web/mastodon_api/mastodon_api_test.exs
parent6e6276b4f8a7a46c6038480f6a842339c5214d1c (diff)
parentb9ebb55d2aabdf4c99b05efab9d4ad31b25f888d (diff)
downloadpleroma-8e90cc58e7ec3f19f03d049ff541750f1ab4774e.tar.gz
pleroma-8e90cc58e7ec3f19f03d049ff541750f1ab4774e.zip
Merge branch 'develop' into feature/update-welcome-setting-in-description
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_test.exs')
-rw-r--r--test/web/mastodon_api/mastodon_api_test.exs3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/web/mastodon_api/mastodon_api_test.exs b/test/web/mastodon_api/mastodon_api_test.exs
index c08be37d4..0c5a38bf6 100644
--- a/test/web/mastodon_api/mastodon_api_test.exs
+++ b/test/web/mastodon_api/mastodon_api_test.exs
@@ -17,8 +17,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPITest do
test "returns error when followed user is deactivated" do
follower = insert(:user)
user = insert(:user, local: true, deactivated: true)
- {:error, error} = MastodonAPI.follow(follower, user)
- assert error == :rejected
+ assert {:error, _error} = MastodonAPI.follow(follower, user)
end
test "following for user" do