forked from YokaiRick/akkoma
test: use private visibility for twitterapi update consistency test, to ensure that a second activity isn't relayed
This commit is contained in:
parent
d91fd48edf
commit
3026177206
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ test "with credentials", %{conn: conn, user: user} do
|
||||||
conn = conn_with_creds |> post(request_path, %{status: " "})
|
conn = conn_with_creds |> post(request_path, %{status: " "})
|
||||||
assert json_response(conn, 400) == error_response
|
assert json_response(conn, 400) == error_response
|
||||||
|
|
||||||
conn = conn_with_creds |> post(request_path, %{status: "Nice meme."})
|
# we post with visibility private in order to avoid triggering relay
|
||||||
|
conn = conn_with_creds |> post(request_path, %{status: "Nice meme.", visibility: "private"})
|
||||||
|
|
||||||
assert json_response(conn, 200) ==
|
assert json_response(conn, 200) ==
|
||||||
ActivityRepresenter.to_map(Repo.one(Activity), %{user: user})
|
ActivityRepresenter.to_map(Repo.one(Activity), %{user: user})
|
||||||
|
|
Loading…
Reference in a new issue