summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-08-05 17:46:24 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-08-05 17:46:24 +0300
commit2299bfe4c19697e7c0250e052d3496533595c58b (patch)
tree798b789f4cf68be68658765af0547b908640f271 /test/web/common_api/common_api_test.exs
parent97b57014496003cabb416766457552ef854fa658 (diff)
parent474aba984f2184d4f028c56f687d1a12f69d5c47 (diff)
downloadpleroma-2299bfe4c19697e7c0250e052d3496533595c58b.tar.gz
pleroma-2299bfe4c19697e7c0250e052d3496533595c58b.zip
Merge branch 'develop' into refactor/config-get
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r--test/web/common_api/common_api_test.exs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index 313dda21b..4ba6232dc 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -458,6 +458,11 @@ defmodule Pleroma.Web.CommonAPITest do
end
describe "posting" do
+ test "deactivated users can't post" do
+ user = insert(:user, deactivated: true)
+ assert {:error, _} = CommonAPI.post(user, %{status: "ye"})
+ end
+
test "it supports explicit addressing" do
user = insert(:user)
user_two = insert(:user)