static-fe tests: fix to work on stable
authorrinpatch <rinpatch@sdf.org>
Sun, 15 Mar 2020 21:17:28 +0000 (00:17 +0300)
committerrinpatch <rinpatch@sdf.org>
Sun, 15 Mar 2020 21:17:28 +0000 (00:17 +0300)
test/web/static_fe/static_fe_controller_test.exs

index a3be908887c3c407a7745a0095268bac99f0f93f..2c999295aa9df75a7575200ed0f2a3ebcaf00b2b 100644 (file)
@@ -123,7 +123,8 @@ defmodule Pleroma.Web.StaticFE.StaticFEControllerTest do
       assert html =~ ~s[&lt;script&gt;alert(&#39;xss&#39;)&lt;/script&gt;]
     end
 
-    test "shows the whole thread", %{conn: conn, user: user} do
+    test "shows the whole thread", %{conn: conn} do
+      user = insert(:user)
       {:ok, activity} = CommonAPI.post(user, %{"status" => "space: the final frontier"})
 
       CommonAPI.post(user, %{