Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma] / test / tasks / ecto / ecto_test.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Mix.Tasks.Pleroma.EctoTest do
6 use ExUnit.Case, async: true
7
8 test "raise on bad path" do
9 assert_raise RuntimeError, ~r/Could not find migrations directory/, fn ->
10 Mix.Tasks.Pleroma.Ecto.ensure_migrations_path(Pleroma.Repo,
11 migrations_path: "some-path"
12 )
13 end
14 end
15 end