diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-04-04 16:08:25 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-04-04 20:36:52 -0500 |
commit | 38de29ae424ecc2dd0ccee4c1ee4bf3a5bb021da (patch) | |
tree | 28a3db9ea67453955e20992434bd60141f6740cb /test | |
parent | 00a183e3a882d68789917dc134754461ff8514d9 (diff) |
move resource modules list to rebar_state, no longer static
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_resource_SUITE.erl | 8 |
1 files changed, 6 insertions, 2 deletions
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))). |