Skip to content

Commit

Permalink
fixed account tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FelidaeHome committed Feb 1, 2015
1 parent 8f3a014 commit b4b4fd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/roni/src/account.erl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
-export([start_link/1]).

-export([is_valid_account/2]).

-export([get_accounts/1]).
%% ====================================================================
%% External functions
%% ====================================================================
Expand Down Expand Up @@ -138,8 +138,8 @@ get_accounts(Application) ->
-include_lib("eunit/include/eunit.hrl").
-ifdef(TEST).
get_accounts_test() ->
application:start(erlib),
?assertEqual([{"account", "password"}],get_accounts(erlib)).
application:start(roni),
?assertEqual([{"a", "a"}], get_accounts(roni)).

check_account_test()->
Accounts = [{"user", "password"}],
Expand Down
3 changes: 1 addition & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"apps/cuberl",
"apps/moni",
"apps/sue",
"apps/roni"
"apps/roni",
"rel"
]}.

Expand All @@ -16,7 +16,6 @@
"apps/moni",
"apps/sue",
"apps/roni"

]}.

{erl_opts,[debug_info,
Expand Down

0 comments on commit b4b4fd3

Please sign in to comment.