X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fpleroma%2Fweb%2Ffeed%2Fuser_controller_test.exs;fp=test%2Fpleroma%2Fweb%2Ffeed%2Fuser_controller_test.exs;h=451ce45aa24cdb7fa804712957ff4547fcbac88c;hb=18bf82d7479b0bb767a657e1b7447529f9c2884f;hp=6e3f790b2f0ed1890266b78081bd97ddbfa39857;hpb=07a48b9293e4046c50b5d424d60a1bf16c7cc198;p=akkoma diff --git a/test/pleroma/web/feed/user_controller_test.exs b/test/pleroma/web/feed/user_controller_test.exs index 6e3f790b2..451ce45aa 100644 --- a/test/pleroma/web/feed/user_controller_test.exs +++ b/test/pleroma/web/feed/user_controller_test.exs @@ -184,14 +184,15 @@ defmodule Pleroma.Web.Feed.UserControllerTest do note_activity = insert(:note_activity) user = User.get_cached_by_ap_id(note_activity.data["actor"]) + %{assigns: %{csp_nonce: nonce}} = resp_conn = get(conn, "/users/#{user.nickname}") + response = - conn - |> get("/users/#{user.nickname}") + resp_conn |> response(200) assert response == Pleroma.Web.Fallback.RedirectController.redirector_with_meta( - conn, + assign(conn, :csp_nonce, nonce), %{user: user} ).resp_body end