test: Change lenght(…) == 0 to Enum.empty?(…)

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-02-11 00:08:48 +01:00
commit 74579115a7
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
5 changed files with 19 additions and 19 deletions

View file

@ -81,7 +81,7 @@ defmodule Pleroma.Web.Websub.WebsubControllerTest do
assert response(conn, 500) == "Error"
assert length(Repo.all(Activity)) == 0
assert Enum.empty?(Repo.all(Activity))
end
end
end