projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex
[akkoma]
/
test
/
list_test.exs
diff --git
a/test/list_test.exs
b/test/list_test.exs
index f39033d022d7c58f32ba379ddae54bbc52cdf859..8efba75ea31811e13f2f48b01a04cc7edbd95316 100644
(file)
--- a/
test/list_test.exs
+++ b/
test/list_test.exs
@@
-15,6
+15,13
@@
defmodule Pleroma.ListTest do
assert title == "title"
end
assert title == "title"
end
+ test "validates title" do
+ user = insert(:user)
+
+ assert {:error, changeset} = Pleroma.List.create("", user)
+ assert changeset.errors == [title: {"can't be blank", [validation: :required]}]
+ end
+
test "getting a list not belonging to the user" do
user = insert(:user)
other_user = insert(:user)
test "getting a list not belonging to the user" do
user = insert(:user)
other_user = insert(:user)