diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-08-16 13:03:05 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-08-16 13:03:05 -0500 |
commit | be8af2ec596fdf2e5801d4d16fd4778688f8bd6d (patch) | |
tree | 887be38e42a0719f06504d279cf014663e902d9c /test/mock_git_resource.erl | |
parent | cf22c7e941bceae8c53ec8160c4311a47676c913 (diff) | |
parent | e25ba5d8eaff9a3a70b9cecfad48b0717e0b49b2 (diff) |
Merge branch 'add-mixed-deps-tests' of https://github.com/ferd/rebar3 into ferd-add-mixed-deps-tests
Diffstat (limited to 'test/mock_git_resource.erl')
-rw-r--r-- | test/mock_git_resource.erl | 7 |
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). |