]> granicus.if.org Git - ejabberd/commitdiff
Add Meck dependency when building for development
authorMickaël Rémond <mremond@process-one.net>
Sat, 7 Mar 2015 11:44:17 +0000 (12:44 +0100)
committerMickaël Rémond <mremond@process-one.net>
Sat, 7 Mar 2015 11:44:17 +0000 (12:44 +0100)
This allows writing tests with mock functions.

Fixes #439

rebar.config.script

index bf00908e83601ff7cfc99af81107f755fa9d9134..f7846c0fa9604c8c9afbd4ec849f804ce5673c58 100644 (file)
@@ -104,6 +104,8 @@ CfgDeps = lists:flatmap(
                     [{lager, ".*", {git, "git://github.com/basho/lager"}}];
                ({lager, false}) ->
                     [{p1_logger, ".*", {git, "git://github.com/processone/p1_logger"}}];
+               ({tools, true}) ->
+                    [{meck, "0.*", {git, "https://github.com/eproxus/meck"}}];
                (_) ->
                     []
             end, Cfg),