aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/user_test.exs14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pleroma/user_test.exs b/test/pleroma/user_test.exs
index 2e485d02c..c015f06b6 100644
--- a/test/pleroma/user_test.exs
+++ b/test/pleroma/user_test.exs
@@ -152,6 +152,20 @@ defmodule Pleroma.UserTest do
end
end
+ describe "tag_names/1" do
+ test "returns tag names of user" do
+ user =
+ insert(:user, %{
+ tags: [
+ build(:tag, name: "verify"),
+ build(:tag, name: "spam")
+ ]
+ })
+
+ assert User.tag_names(user) == ["verify", "spam"]
+ end
+ end
+
test "ap_id returns the activity pub id for the user" do
user = UserBuilder.build()