1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Mix.Tasks.Pleroma.EctoTest do
6 use ExUnit.Case, async: true
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"