summaryrefslogtreecommitdiff
path: root/test/mix/tasks
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2021-01-27 11:33:27 +0000
committerlain <lain@soykaf.club>2021-01-27 11:33:27 +0000
commit7f0787163999fc0ac0c6fcfd0c13f80c5a55266d (patch)
tree849a79b9cea9d11402081a94f26f1f631bc87bc1 /test/mix/tasks
parentd7af0294e6a3a690524e0a08a35c9c6dafbb9f79 (diff)
parente854c35e652ce51821116cc7032099cd5534f7a6 (diff)
downloadpleroma-7f0787163999fc0ac0c6fcfd0c13f80c5a55266d.tar.gz
pleroma-7f0787163999fc0ac0c6fcfd0c13f80c5a55266d.zip
Merge branch 'chore/tests-use-clear_config' into 'develop'
Convert tests to all use clear_config instead of Pleroma.Config.put See merge request pleroma/pleroma!3282
Diffstat (limited to 'test/mix/tasks')
-rw-r--r--test/mix/tasks/pleroma/robots_txt_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mix/tasks/pleroma/robots_txt_test.exs b/test/mix/tasks/pleroma/robots_txt_test.exs
index 4b369d83c..028aa4ccc 100644
--- a/test/mix/tasks/pleroma/robots_txt_test.exs
+++ b/test/mix/tasks/pleroma/robots_txt_test.exs
@@ -12,7 +12,7 @@ defmodule Mix.Tasks.Pleroma.RobotsTxtTest do
test "creates new dir" do
path = "test/fixtures/new_dir/"
file_path = path <> "robots.txt"
- Pleroma.Config.put([:instance, :static_dir], path)
+ clear_config([:instance, :static_dir], path)
on_exit(fn ->
{:ok, ["test/fixtures/new_dir/", "test/fixtures/new_dir/robots.txt"]} = File.rm_rf(path)
@@ -29,7 +29,7 @@ defmodule Mix.Tasks.Pleroma.RobotsTxtTest do
test "to existance folder" do
path = "test/fixtures/"
file_path = path <> "robots.txt"
- Pleroma.Config.put([:instance, :static_dir], path)
+ clear_config([:instance, :static_dir], path)
on_exit(fn ->
:ok = File.rm(file_path)