From e73ed97cfd5d9b94c98320c3aa0b6072ef32c4be Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 14 Feb 2015 13:16:03 -0600 Subject: follow xdg standard. fixes #122 --- test/rebar_new_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/rebar_new_SUITE.erl b/test/rebar_new_SUITE.erl index 62a26af..6b57b74 100644 --- a/test/rebar_new_SUITE.erl +++ b/test/rebar_new_SUITE.erl @@ -23,7 +23,7 @@ end_per_testcase(_, Config) -> mock_home_dir(Path) -> meck:new(rebar_dir, [passthrough]), - meck:expect(rebar_dir, home_dir, fun() -> Path end). + meck:expect(rebar_dir, template_dir, fun(_) -> Path end). mock_empty_escript_templates() -> %% Can't find escript templates unless we run -- cgit v1.1 From 24383e228373d14c23c56225fe3e974dcbb0b43d Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Thu, 19 Feb 2015 09:27:39 -0600 Subject: fix order of top_level_deps function in ugprade_SUITE --- test/rebar_upgrade_SUITE.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/rebar_upgrade_SUITE.erl b/test/rebar_upgrade_SUITE.erl index b4daef9..ed0b2d8 100644 --- a/test/rebar_upgrade_SUITE.erl +++ b/test/rebar_upgrade_SUITE.erl @@ -357,10 +357,10 @@ upgrades(delete_d) -> %% running the upgrade code is enough to properly upgrade things. top_level_deps([]) -> []; -top_level_deps([{{Name, Vsn, Ref}, _} | Deps]) -> - [{list_to_atom(Name), Vsn, Ref} | top_level_deps(Deps)]; top_level_deps([{{pkg, Name, Vsn}, _} | Deps]) -> - [{list_to_atom(Name), Vsn} | top_level_deps(Deps)]. + [{list_to_atom(Name), Vsn} | top_level_deps(Deps)]; +top_level_deps([{{Name, Vsn, Ref}, _} | Deps]) -> + [{list_to_atom(Name), Vsn, Ref} | top_level_deps(Deps)]. mock_deps(git, Deps, Upgrades) -> catch mock_git_resource:unmock(), -- cgit v1.1