Permalink
Browse files

TEST adapt moka_history_test to the new test history API

It is not covering exceptions yet
  • Loading branch information...
1 parent 9932a42 commit de6bf323e362f688e08029b20e23bdb4b58201d1 @samuelrivas committed Jul 3, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/unit/moka_history_tests.erl
@@ -60,15 +60,15 @@ description() -> {module_gen(), function_gen()}.
module_gen() -> proper_types:elements([mod1, mod2, mod3, mod4]).
function_gen() -> proper_types:elements([fun1, fun2, fun3, fun4]).
args_gen() -> proper_types:list(proper_types:integer()).
-return_gen() -> proper_types:integer().
+return_gen() -> {return, proper_types:integer()}.
%%%_* Private Functions ================================================
test_server_name() -> moka_history_test_server.
replay_history(Server, History) ->
lists:foreach(
- fun({Description, Args, Result}) ->
- moka_history:add_call(Server, Description, Args, Result)
+ fun({Description, Args, {return, Result}}) ->
+ moka_history:add_return(Server, Description, Args, Result)
end,
History).

0 comments on commit de6bf32

Please sign in to comment.