Merge branch 'feature/jobs' into 'develop'
[akkoma] / test / tasks / user_test.exs
index 7479bf749c041ba05e8897274057036e989e30af..7b814d171dad113cd0677d4f6547a34117f0d771 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 Mix.Tasks.Pleroma.UserTest do
   alias Pleroma.User
   use Pleroma.DataCase
@@ -147,7 +151,7 @@ defmodule Mix.Tasks.Pleroma.UserTest do
       assert message =~ "Successfully unsubscribed"
 
       user = User.get_by_nickname(user.nickname)
-      assert length(user.following) == 0
+      assert Enum.empty?(user.following)
       assert user.info.deactivated
     end