Switch another test to Upload.base_url/0
authorMark Felder <feld@feld.me>
Tue, 12 Jan 2021 22:42:43 +0000 (16:42 -0600)
committerMark Felder <feld@feld.me>
Tue, 12 Jan 2021 22:42:43 +0000 (16:42 -0600)
test/pleroma/upload_test.exs

index cea161d8cf6424b8e10edb1b6c86eadea832a89c..8f84a0be173187f3e55c82ef7856dbbbd4869629 100644 (file)
@@ -133,7 +133,7 @@ defmodule Pleroma.UploadTest do
 
       assert %{"url" => [%{"href" => url}]} = data
 
-      assert String.starts_with?(url, Pleroma.Web.base_url() <> "/media/")
+      assert String.starts_with?(url, Pleroma.Upload.base_url())
     end
 
     test "copies the file to the configured folder with deduping" do