Skip to content

Commit

Permalink
additional return checks in setup functions for #4
Browse files Browse the repository at this point in the history
  • Loading branch information
unix1 committed Mar 11, 2014
1 parent 34a96bd commit adc9254
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/test_econfig_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-include_lib("eunit/include/eunit.hrl").

setup() ->
application:load({application, econfig,
ok = application:load({application, econfig,
[
{description, "simple Erlang config handler using INI files"},
{vsn, "0.4.1"},
Expand All @@ -14,14 +14,12 @@ setup() ->
{env, []}
]}),
% ok = application:load(econfig),
econfig:start(),
econfig:register_config(t, ["../priv/fixtures/test.ini"], []),
ok.
ok = econfig:start(),
ok = econfig:register_config(t, ["../priv/fixtures/test.ini"], []).

cleanup(_State) ->
application:stop(econfig),
application:stop(gproc),
ok.
ok = application:stop(econfig),
ok = application:stop(gproc).

simple_test_() ->
{setup,
Expand Down

0 comments on commit adc9254

Please sign in to comment.