diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-04-05 10:23:43 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-04-05 10:23:43 -0400 |
commit | 3250faa75683bdbfc521c4e8c6772f45d6d2e863 (patch) | |
tree | 869b863aff8062d78042d27ef62f9236c3a4559f /test/mock_git_resource.erl | |
parent | a99344a47066dd26b02cf34e84c15aa2f6f4dbe5 (diff) | |
parent | 79e2d6006c989a241d4599d048ff39f094f9e886 (diff) |
Merge pull request #320 from tsloughter/dep_plugins
install dep plugins & run provider hooks the same as shell hooks (Rereopen 316)
Diffstat (limited to 'test/mock_git_resource.erl')
-rw-r--r-- | test/mock_git_resource.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/mock_git_resource.erl b/test/mock_git_resource.erl index 9c799fd..d8f747b 100644 --- a/test/mock_git_resource.erl +++ b/test/mock_git_resource.erl @@ -99,6 +99,7 @@ mock_vsn(Opts) -> %% into a `rebar.config' file to describe dependencies. mock_download(Opts) -> Deps = proplists:get_value(deps, Opts, []), + Config = proplists:get_value(config, Opts, []), Default = proplists:get_value(default_vsn, Opts, "0.0.0"), Overrides = proplists:get_value(override_vsn, Opts, []), meck:expect( @@ -112,7 +113,7 @@ mock_download(Opts) -> Dir, App, Vsn, [kernel, stdlib] ++ [element(1,D) || D <- AppDeps] ), - rebar_test_utils:create_config(Dir, [{deps, AppDeps}]), + rebar_test_utils:create_config(Dir, [{deps, AppDeps}]++Config), {ok, 'WHATEVER'} end). |