X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Ftasks%2Finstance_test.exs;h=3b4c041d9f483655ff720780c49577fe6483d246;hb=d8728580468ecf876e531440fa31aef6a3e33f7b;hp=a0cc5d7c7d57250c1746eaf9298e2c55d232459e;hpb=97dae77240720634a32a630da2e2a93da3dd0d44;p=akkoma
diff --git a/test/tasks/instance_test.exs b/test/tasks/instance_test.exs
index a0cc5d7c7..3b4c041d9 100644
--- a/test/tasks/instance_test.exs
+++ b/test/tasks/instance_test.exs
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.InstanceTest do
@@ -63,7 +63,7 @@ defmodule Pleroma.InstanceTest do
"--uploads-dir",
"test/uploads",
"--static-dir",
- "instance/static/"
+ "./test/../test/instance/static/"
])
end
@@ -83,6 +83,7 @@ defmodule Pleroma.InstanceTest do
assert generated_config =~ "configurable_from_database: true"
assert generated_config =~ "http: [ip: {127, 0, 0, 1}, port: 4000]"
assert File.read!(tmp_path() <> "setup.psql") == generated_setup_psql()
+ assert File.exists?(Path.expand("./test/instance/static/robots.txt"))
end
defp generated_setup_psql do