diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-08-22 19:58:20 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-08-22 22:20:16 -0500 |
commit | 391959dae8540a96c1945082f3b62fbe46914800 (patch) | |
tree | 9efe522403b2fb9fd284e6e6af488a4a6b7fa846 /test | |
parent | 070e9d329bcbae9a7912b7cd84af0a97bc1c3c19 (diff) |
use 'default' for default hex repo path in cache and include in info messages
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_pkg_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rebar_pkg_SUITE.erl b/test/rebar_pkg_SUITE.erl index 3cd3a67..b0b7eda 100644 --- a/test/rebar_pkg_SUITE.erl +++ b/test/rebar_pkg_SUITE.erl @@ -148,7 +148,7 @@ bad_disconnect(Config) -> Tmp = ?config(tmp_dir, Config), {Pkg,Vsn} = ?config(pkg, Config), State = ?config(state, Config), - ?assertEqual(request_failed, + ?assertEqual({fetch_fail, Pkg, Vsn}, rebar_pkg_resource:download(Tmp, {pkg, Pkg, Vsn}, State)). @@ -183,6 +183,7 @@ mock_config(Name, Config) -> meck:expect(rebar_dir, global_cache_dir, fun(_) -> CacheRoot end), meck:new(rebar_packages, [passthrough]), + meck:expect(rebar_packages, registry_dir, fun(_) -> CacheDir end), meck:expect(rebar_packages, package_dir, fun(_) -> CacheDir end), rebar_prv_update:hex_to_index(rebar_state:new()), |