diff options
| author | Maksim <parallel588@gmail.com> | 2019-08-19 15:34:29 +0000 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-08-19 15:34:29 +0000 |
| commit | a320358703db249ab20df5afd81c92fb42b8cadb (patch) | |
| tree | d46f6d2447183492d75983986ae2d57b75fdcb0b /test/web/rich_media | |
| parent | 49ae3191df2a7acfa741e93d6f5142f9cf27dc06 (diff) | |
| download | pleroma-a320358703db249ab20df5afd81c92fb42b8cadb.tar.gz pleroma-a320358703db249ab20df5afd81c92fb42b8cadb.zip | |
added test helpers to clear config after tests
Diffstat (limited to 'test/web/rich_media')
| -rw-r--r-- | test/web/rich_media/helpers_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/rich_media/helpers_test.exs b/test/web/rich_media/helpers_test.exs index 92198f3d9..48884319d 100644 --- a/test/web/rich_media/helpers_test.exs +++ b/test/web/rich_media/helpers_test.exs @@ -15,12 +15,12 @@ defmodule Pleroma.Web.RichMedia.HelpersTest do setup do mock(fn env -> apply(HttpRequestMock, :request, [env]) end) - rich_media = Config.get([:rich_media, :enabled]) - on_exit(fn -> Config.put([:rich_media, :enabled], rich_media) end) :ok end + clear_config([:rich_media, :enabled]) + test "refuses to crawl incomplete URLs" do user = insert(:user) |
