summaryrefslogtreecommitdiff
path: root/test/tasks/ecto/ecto_test.exs
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-07-09 12:49:04 -0500
committerMark Felder <feld@FreeBSD.org>2019-07-09 12:49:04 -0500
commit9a9b60cfbcbcdf3e48e42aa75ff530007cf03b96 (patch)
treefc28e2fb05ad0158fe881de7a49e90d941e10ad4 /test/tasks/ecto/ecto_test.exs
parent9f235028569968871ef9ea933459c6e9369e737a (diff)
parente19e82975871388831fd23adc50fcaaea85ad5da (diff)
downloadpleroma-9a9b60cfbcbcdf3e48e42aa75ff530007cf03b96.tar.gz
pleroma-9a9b60cfbcbcdf3e48e42aa75ff530007cf03b96.zip
Merge branch 'develop' into feature/allow-user-query-via-id
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