test: Aprsme.Application config_change + module smoke

This commit is contained in:
Graham McIntire 2026-04-24 08:29:07 -05:00
parent 75b08cb997
commit d1ca6d3e66
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -0,0 +1,26 @@
defmodule Aprsme.ApplicationTest do
use ExUnit.Case, async: false
describe "config_change/3" do
test "returns :ok" do
assert :ok = Aprsme.Application.config_change(%{}, %{}, [])
end
test "returns :ok with populated change maps" do
assert :ok =
Aprsme.Application.config_change(
%{secret_key_base: "x"},
%{},
[:removed_key]
)
end
end
describe "start/2" do
test "module is loaded and exports the Application behaviour callbacks" do
Code.ensure_loaded(Aprsme.Application)
assert function_exported?(Aprsme.Application, :start, 2)
assert function_exported?(Aprsme.Application, :config_change, 3)
end
end
end