Permalink
Browse files

TEST adapt moka_fsm_test to the new history API

  • Loading branch information...
1 parent 98c5529 commit 2a55f8394355a5593613829c7ab3cf3e692fce9e @samuelrivas committed Jul 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/component/moka_fsm_test.erl
@@ -423,7 +423,7 @@ replacement_fun(2) -> fun(A, B) -> {moked, [A, B]} end.
add_call_to_history(Func, Args, Res, State) ->
History = State#state.history,
- State#state{history = History ++ [{Func, Args, Res}]}.
+ State#state{history = History ++ [{Func, Args, {return, Res}}]}.
%% Add to history those replaced calls that are run when executing FuncSpec
add_replacements_to_history(FunSpec, Res, State) ->

0 comments on commit 2a55f83

Please sign in to comment.