projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stats: Use `invisible` property for filtering.
[akkoma]
/
test
/
tasks
/
count_statuses_test.exs
diff --git
a/test/tasks/count_statuses_test.exs
b/test/tasks/count_statuses_test.exs
index 6035da3c31b41988800b1567220f5491b52f20c0..73c2ea6906d3ed31063e76523f9a0dce0d5a0475 100644
(file)
--- a/
test/tasks/count_statuses_test.exs
+++ b/
test/tasks/count_statuses_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.CountStatusesTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.CountStatusesTest do
@@
-22,18
+22,18
@@
defmodule Mix.Tasks.Pleroma.CountStatusesTest do
user = refresh_record(user)
user2 = refresh_record(user2)
user = refresh_record(user)
user2 = refresh_record(user2)
- assert %{
info: %{note_count: 2}
} = user
- assert %{
info: %{note_count: 1}
} = user2
+ assert %{
note_count: 2
} = user
+ assert %{
note_count: 1
} = user2
- {:ok, user} = User.update_
info(user, &User.Info.set_note_count(&1, 0)
)
- {:ok, user2} = User.update_
info(user2, &User.Info.set_note_count(&1, 0)
)
+ {:ok, user} = User.update_
note_count(user, 0
)
+ {:ok, user2} = User.update_
note_count(user2, 0
)
- assert %{
info: %{note_count: 0}
} = user
- assert %{
info: %{note_count: 0}
} = user2
+ assert %{
note_count: 0
} = user
+ assert %{
note_count: 0
} = user2
assert capture_io(fn -> Mix.Tasks.Pleroma.CountStatuses.run([]) end) == "Done\n"
assert capture_io(fn -> Mix.Tasks.Pleroma.CountStatuses.run([]) end) == "Done\n"
- assert %{
info: %{note_count: 2}
} = refresh_record(user)
- assert %{
info: %{note_count: 1}
} = refresh_record(user2)
+ assert %{
note_count: 2
} = refresh_record(user)
+ assert %{
note_count: 1
} = refresh_record(user2)
end
end
end
end