diff options
author | Maksim <parallel588@gmail.com> | 2019-07-05 04:22:08 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2019-07-05 04:22:08 +0000 |
commit | 6dadf5d6f41dda8d0f760da25f4394eecf467a80 (patch) | |
tree | 286c24e42f22320d7556420e4fff956e7f23a043 /test/support/helpers.ex | |
parent | 497788a3cc8133e05b3b86a1731bf9d9cc583ce7 (diff) | |
download | pleroma-6dadf5d6f41dda8d0f760da25f4394eecf467a80.tar.gz pleroma-6dadf5d6f41dda8d0f760da25f4394eecf467a80.zip |
[#1043] fix search accounts.
Diffstat (limited to 'test/support/helpers.ex')
-rw-r--r-- | test/support/helpers.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/support/helpers.ex b/test/support/helpers.ex index 6e389ce52..1a92be065 100644 --- a/test/support/helpers.ex +++ b/test/support/helpers.ex @@ -9,6 +9,12 @@ defmodule Pleroma.Tests.Helpers do defmacro __using__(_opts) do quote do + def collect_ids(collection) do + collection + |> Enum.map(& &1.id) + |> Enum.sort() + end + def refresh_record(%{id: id, __struct__: model} = _), do: refresh_record(model, %{id: id}) |