logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma

ecto_test.exs (468B)


  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. defmodule Mix.Tasks.Pleroma.EctoTest do
  5. use ExUnit.Case, async: true
  6. test "raise on bad path" do
  7. assert_raise RuntimeError, ~r/Could not find migrations directory/, fn ->
  8. Mix.Tasks.Pleroma.Ecto.ensure_migrations_path(Pleroma.Repo,
  9. migrations_path: "some-path"
  10. )
  11. end
  12. end
  13. end