projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Basic release skeleton
[akkoma]
/
test
/
list_test.exs
diff --git
a/test/list_test.exs
b/test/list_test.exs
index 19eef8f6b8d64f838ce203c7ce60aa0b6a87ee3c..1909c0cd9e664771e7e425eab8542c5e7d8e8a2a 100644
(file)
--- a/
test/list_test.exs
+++ b/
test/list_test.exs
@@
-1,9
+1,12
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.ListTest do
defmodule Pleroma.ListTest do
- alias Pleroma.
{User, Repo}
+ alias Pleroma.
Repo
use Pleroma.DataCase
import Pleroma.Factory
use Pleroma.DataCase
import Pleroma.Factory
- import Ecto.Query
test "creating a list" do
user = insert(:user)
test "creating a list" do
user = insert(:user)
@@
-32,7
+35,7
@@
defmodule Pleroma.ListTest do
user = insert(:user)
other_user = insert(:user)
{:ok, list} = Pleroma.List.create("title", user)
user = insert(:user)
other_user = insert(:user)
{:ok, list} = Pleroma.List.create("title", user)
- {:ok, %{following: following}} = Pleroma.List.follow(list, other_user)
+ {:ok, %{following:
_
following}} = Pleroma.List.follow(list, other_user)
{:ok, %{following: following}} = Pleroma.List.unfollow(list, other_user)
assert [] == following
end
{:ok, %{following: following}} = Pleroma.List.unfollow(list, other_user)
assert [] == following
end