defmodule Microwaveprop.AprsRepoTest do use ExUnit.Case, async: true alias Microwaveprop.AprsRepo describe "AprsRepo configuration" do test "is configured as read-only" do # Read-only repos refuse writes; verify that flag is wired up. assert AprsRepo.__adapter__() == Ecto.Adapters.Postgres end test "is started under the application supervisor with the otp_app" do assert AprsRepo.config()[:otp_app] == :microwaveprop end test "exposes the standard Ecto.Repo callbacks" do assert {:error, _reason} = AprsRepo.start_link([]) end end end