From: Mickaël Rémond Date: Sat, 7 Mar 2015 11:44:17 +0000 (+0100) Subject: Add Meck dependency when building for development X-Git-Tag: 15.03~37^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=915012766e5b99f1696e3bc8a710fe2f43aaa2ef;p=ejabberd Add Meck dependency when building for development This allows writing tests with mock functions. Fixes #439 --- diff --git a/rebar.config.script b/rebar.config.script index bf00908e8..f7846c0fa 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -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),