test: Application module smoke test
This commit is contained in:
parent
f49473e6cd
commit
eb6801c927
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue