projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mix format
[akkoma]
/
test
/
mix
/
tasks
/
pleroma
/
robots_txt_test.exs
diff --git
a/test/mix/tasks/pleroma/robots_txt_test.exs
b/test/mix/tasks/pleroma/robots_txt_test.exs
index 4b369d83ca00eff3860c7f043a7f748704c7d147..028aa4ccc13fe57ac95fcad2bac1eccc20d02393 100644
(file)
--- 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"
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)
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"
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)
on_exit(fn ->
:ok = File.rm(file_path)