add ability to set a custom user-agent string
[akkoma] / test / plugs / user_is_admin_plug_test.exs
index cdab6b8ed341c7f5f01f88a6460c9ddf0fe7828b..136dcc54ed2ce143873b1fce4a3c2bb885ad1fed 100644 (file)
@@ -1,3 +1,7 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
 defmodule Pleroma.Plugs.UserIsAdminPlugTest do
   use Pleroma.Web.ConnCase, async: true
 
@@ -5,7 +9,7 @@ defmodule Pleroma.Plugs.UserIsAdminPlugTest do
   import Pleroma.Factory
 
   test "accepts a user that is admin" do
-    user = insert(:user, info: %{is_admin: true})
+    user = insert(:user, is_admin: true)
 
     conn =
       build_conn()