test: Application module smoke test

This commit is contained in:
Graham McIntire 2026-04-24 08:50:23 -05:00
parent f49473e6cd
commit eb6801c927
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -23,4 +23,12 @@ defmodule Aprsme.ApplicationTest do
assert function_exported?(Aprsme.Application, :config_change, 3)
end
end
describe "module compilation" do
test "Application module is loaded and has the Application behaviour" do
Code.ensure_loaded!(Aprsme.Application)
behaviours = Aprsme.Application.module_info(:attributes)[:behaviour] || []
assert Application in behaviours
end
end
end