summaryrefslogtreecommitdiff
path: root/test/mock_git_resource.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-08-16 04:31:18 +0000
committerFred Hebert <mononcqc@ferd.ca>2015-08-16 13:55:06 +0000
commit59579c070838eced4af05113364a87bcc6ad3ebf (patch)
tree4a3065bb759cc0ca2434637dedaaec43458f6d82 /test/mock_git_resource.erl
parent642897867eddf00a7b1a9bf3ca99c0851b287db0 (diff)
Add tests for mixed deps installs
Requires a rework of other test suites using the same dep-handling mechanism.
Diffstat (limited to 'test/mock_git_resource.erl')
-rw-r--r--test/mock_git_resource.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/mock_git_resource.erl b/test/mock_git_resource.erl
index d8f747b..0f4aff6 100644
--- a/test/mock_git_resource.erl
+++ b/test/mock_git_resource.erl
@@ -20,7 +20,8 @@ mock() -> mock([]).
| {override_vsn, [{App, Vsn}]}
| {deps, [{App, [Dep]}]},
App :: string(),
- Dep :: {App, string(), {git, string()} | {git, string(), term()}},
+ Dep :: {App, string(), {git, string()} | {git, string(), term()}}
+ | {pkg, App, term()},
Vsn :: string().
mock(Opts) ->
meck:new(?MOD, [no_link]),
@@ -46,8 +47,8 @@ mock_lock(_) ->
case Git of
{git, Url, {tag, Ref}} -> {git, Url, {ref, Ref}};
{git, Url, {ref, Ref}} -> {git, Url, {ref, Ref}};
- {git, Url} -> {git, Url, {ref, "fake-ref"}};
- {git, Url, _} -> {git, Url, {ref, "fake-ref"}}
+ {git, Url} -> {git, Url, {ref, "0.0.0"}};
+ {git, Url, _} -> {git, Url, {ref, "0.0.0"}}
end
end).