From 38de29ae424ecc2dd0ccee4c1ee4bf3a5bb021da Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 4 Apr 2015 16:08:25 -0500 Subject: move resource modules list to rebar_state, no longer static --- test/rebar_resource_SUITE.erl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/rebar_resource_SUITE.erl b/test/rebar_resource_SUITE.erl index 95263c7..15f14db 100644 --- a/test/rebar_resource_SUITE.erl +++ b/test/rebar_resource_SUITE.erl @@ -12,7 +12,10 @@ groups() -> {hg, [], [{group, all}]}]. init_per_group(all, Config) -> - Config; + State = rebar_state:resources(rebar_state:new(), [{git, rebar_git_resource}, + {pkg, rebar_pkg_resource}, + {hg, rebar_hg_resource}]), + [{state, State} | Config]; init_per_group(Name, Config) -> [{type, Name}, {resource, {Name, "https://example.org/user/app", "vsn"}} | Config]. @@ -33,4 +36,5 @@ end_per_testcase(_, Config) -> change_type_upgrade(Config) -> ?assert(rebar_fetch:needs_update(?config(path, Config), - ?config(resource, Config))). + ?config(resource, Config), + ?config(state, Config))). -- cgit v1.1