   end
 
   test "renders 403 when not authed", %{conn: conn} do
-    Repo.insert! valid_badge_with_svg
+    Repo.insert! valid_badge_with_svg()
 
     conn = get(conn, "/badges/coverage.svg")
 

  end

  test "updates and renders chosen resource when data is valid", %{conn: conn} do
    Repo.insert! valid_badge

    conn =
      conn

  end

  test "does not update chosen resource and renders errors when data is invalid", %{conn: conn} do
     Repo.insert! valid_badge()

    conn =
      conn
