projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a00713
)
MastodonAPITest: Do the needful
author
lain
<lain@soykaf.club>
Tue, 4 Aug 2020 13:08:51 +0000
(15:08 +0200)
committer
lain
<lain@soykaf.club>
Tue, 4 Aug 2020 13:08:51 +0000
(15:08 +0200)
test/web/mastodon_api/mastodon_api_test.exs
patch
|
blob
|
history
diff --git
a/test/web/mastodon_api/mastodon_api_test.exs
b/test/web/mastodon_api/mastodon_api_test.exs
index c08be37d4ae62c094f1963d1c1e8df83fdc69d63..0c5a38bf649e0968b8861c98597f1e167b479af4 100644
(file)
--- 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