diff options
author | Mark Felder <feld@feld.me> | 2021-01-26 11:58:43 -0600 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2021-01-26 11:58:43 -0600 |
commit | e854c35e652ce51821116cc7032099cd5534f7a6 (patch) | |
tree | 4a935176766ed5c574832e85705b04a641ea1aa6 /test/mix | |
parent | e1eac4faac723c5015d7d696600d24c44f5ab52c (diff) | |
download | pleroma-e854c35e652ce51821116cc7032099cd5534f7a6.tar.gz |
Convert tests to all use clear_config instead of Pleroma.Config.put
Diffstat (limited to 'test/mix')
-rw-r--r-- | test/mix/tasks/pleroma/robots_txt_test.exs | 4 |
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) |