config: string get/set

This commit is contained in:
Carlos Martín Nieto
2014-05-19 13:11:55 +02:00
parent 4b0379f3ee
commit 8ade44a868
6 changed files with 82 additions and 5 deletions

View File

@@ -23,8 +23,8 @@ bool_test({Config, _}) ->
string_test({Config, _}) ->
Var = "user.name",
Val = <<"Random J. Hacker">>,
ok = geef_config:set(Config, Var, Val),
[?_assertEqual({ok, Val}, geef_config:get(Config, Var))].
[?_assertEqual(ok, geef_config:set(Config, Var, Val)),
?_assertEqual({ok, Val}, geef_config:get_string(Config, Var))].
stop({_, Path}) ->
ok = file:delete(Path).