conn = conn_with_creds |> post(request_path, %{status: " "})
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) ==
ActivityRepresenter.to_map(Repo.one(Activity), %{user: user})
conn
|> with_credentials(current_user.nickname, "test")
|> get("/api/qvitter/mutes.json")
+
current_user = Repo.get(User, current_user.id)
- assert "[]" = json_response(conn, 200)
+ assert [] = json_response(conn, 200)
end
end