summaryrefslogtreecommitdiff
path: root/test/tasks/ecto/ecto_test.exs
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2019-07-09 16:54:14 +0000
committerkaniini <nenolod@gmail.com>2019-07-09 16:54:14 +0000
commitb6fd16d0a424f916b7338237a2972e595e404955 (patch)
tree3d5b7c516921b4fdcf50ffb71382e49d1474eb66 /test/tasks/ecto/ecto_test.exs
parent1179a135333aa59e7fa4f5b908e1db8257b994f5 (diff)
parent4e6e5d80428a40f0403560b3c8381ea48cf4373e (diff)
downloadpleroma-b6fd16d0a424f916b7338237a2972e595e404955.tar.gz
pleroma-b6fd16d0a424f916b7338237a2972e595e404955.zip
Merge branch 'test-coverage' into 'develop'
reverse proxy tests See merge request pleroma/pleroma!1385
Diffstat (limited to 'test/tasks/ecto/ecto_test.exs')
-rw-r--r--test/tasks/ecto/ecto_test.exs11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/tasks/ecto/ecto_test.exs b/test/tasks/ecto/ecto_test.exs
new file mode 100644
index 000000000..b48662c88
--- /dev/null
+++ b/test/tasks/ecto/ecto_test.exs
@@ -0,0 +1,11 @@
+defmodule Mix.Tasks.Pleroma.EctoTest do
+ use ExUnit.Case, async: true
+
+ test "raise on bad path" do
+ assert_raise RuntimeError, ~r/Could not find migrations directory/, fn ->
+ Mix.Tasks.Pleroma.Ecto.ensure_migrations_path(Pleroma.Repo,
+ migrations_path: "some-path"
+ )
+ end
+ end
+end