|> json_response_and_validate_schema(200)
end
- test "following with subscription and unsubscribing when notify is nil" do
+ test "following with subscription and unsubscribing" do
%{conn: conn} = oauth_access(["follow"])
followed = insert(:user)
ret_conn =
conn
|> put_req_header("content-type", "application/json")
- |> post("/api/v1/accounts/#{followed.id}/follow")
+ |> post("/api/v1/accounts/#{followed.id}/follow", %{notify: false})
assert %{"id" => _id, "subscribing" => false} =
json_response_and_validate_schema(ret_conn, 200)