fix for test on mac
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Thu, 24 Sep 2020 07:46:09 +0000 (10:46 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Thu, 24 Sep 2020 07:46:09 +0000 (10:46 +0300)
test/utils_test.exs

index 3a730d545fe23288b955e1721e18e05cdcc337e0..460f7e0b5ceb2c9440b5a01c64d18577040770d9 100644 (file)
@@ -8,7 +8,7 @@ defmodule Pleroma.UtilsTest do
   describe "tmp_dir/1" do
     test "returns unique temporary directory" do
       {:ok, path} = Pleroma.Utils.tmp_dir("emoji")
-      assert path =~ ~r/\/tmp\/emoji-(.*)-#{:os.getpid()}-(.*)/
+      assert path =~ ~r/\/emoji-(.*)-#{:os.getpid()}-(.*)/
       File.rm_rf(path)
     end
   end