projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
also resolve @full@tags in mfm (#62)
[akkoma]
/
test
/
pleroma
/
repo
/
migrations
/
confirm_logged_in_users_test.exs
diff --git
a/test/pleroma/repo/migrations/confirm_logged_in_users_test.exs
b/test/pleroma/repo/migrations/confirm_logged_in_users_test.exs
index f1fd891131424a5d0a0ffc68cd2f26c3bd17bef6..99d17f62a5253301748a7289a7f1e3fd3c732479 100644
(file)
--- a/
test/pleroma/repo/migrations/confirm_logged_in_users_test.exs
+++ b/
test/pleroma/repo/migrations/confirm_logged_in_users_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Repo.Migrations.ConfirmLoggedInUsersTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Repo.Migrations.ConfirmLoggedInUsersTest do
@@
-14,12
+14,12
@@
defmodule Pleroma.Repo.Migrations.ConfirmLoggedInUsersTest do
test "up/0 confirms unconfirmed but previously-logged-in users", %{migration: migration} do
insert_list(25, :oauth_token)
test "up/0 confirms unconfirmed but previously-logged-in users", %{migration: migration} do
insert_list(25, :oauth_token)
- Repo.update_all(User, set: [
confirmation_pending: tru
e])
- insert_list(5, :user,
confirmation_pending: tru
e)
+ Repo.update_all(User, set: [
is_confirmed: fals
e])
+ insert_list(5, :user,
is_confirmed: fals
e)
count =
User
count =
User
- |> where(
confirmation_pending: tru
e)
+ |> where(
is_confirmed: fals
e)
|> Repo.aggregate(:count)
assert count == 30
|> Repo.aggregate(:count)
assert count == 30
@@
-28,7
+28,7
@@
defmodule Pleroma.Repo.Migrations.ConfirmLoggedInUsersTest do
count =
User
count =
User
- |> where(
confirmation_pending: tru
e)
+ |> where(
is_confirmed: fals
e)
|> Repo.aggregate(:count)
assert count == 5
|> Repo.aggregate(:count)
assert count == 5