summaryrefslogtreecommitdiff
path: root/test/tasks/ecto/ecto_test.exs
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2019-07-09 21:21:09 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2019-07-09 21:21:09 +0300
commit371d39e160efa51f2fe608e1788f6b11b89d9839 (patch)
treeb5dc6280d713f11392fd47bffd1a675b527162f5 /test/tasks/ecto/ecto_test.exs
parentd2cb18b2a342b990cc47dfdc42adb843c3db1b5e (diff)
parent670a77ecbc94d57c6ecb5e569597e81cee4b5532 (diff)
downloadpleroma-371d39e160efa51f2fe608e1788f6b11b89d9839.tar.gz
pleroma-371d39e160efa51f2fe608e1788f6b11b89d9839.zip
Merge develop
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