test: Aprsme.Application config_change + module smoke
This commit is contained in:
parent
75b08cb997
commit
d1ca6d3e66
1 changed files with 26 additions and 0 deletions
26
test/aprsme/application_test.exs
Normal file
26
test/aprsme/application_test.exs
Normal 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
|
||||
Loading…
Add table
Reference in a new issue