diff options
author | lain <lain@soykaf.club> | 2020-08-04 15:08:51 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-08-04 15:08:51 +0200 |
commit | 36aa34a1a8c489f74a9821095d823f8060afac5f (patch) | |
tree | fd1c79a4aabc1a6d349e3a472ab7a3ce712e24f1 | |
parent | 1a00713744803824b16efd575c9c6880b1d1a57e (diff) | |
download | pleroma-36aa34a1a8c489f74a9821095d823f8060afac5f.tar.gz |
MastodonAPITest: Do the needful
-rw-r--r-- | test/web/mastodon_api/mastodon_api_test.exs | 3 |
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 |