summaryrefslogtreecommitdiff
path: root/test/rebar_resource_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/rebar_resource_SUITE.erl')
-rw-r--r--test/rebar_resource_SUITE.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/rebar_resource_SUITE.erl b/test/rebar_resource_SUITE.erl
index 15f14db..ddacb91 100644
--- a/test/rebar_resource_SUITE.erl
+++ b/test/rebar_resource_SUITE.erl
@@ -29,12 +29,15 @@ init_per_testcase(change_type_upgrade, Config) ->
TypeStr = atom_to_list(Type),
DirName = filename:join([?config(priv_dir, Config), "resource_"++TypeStr]),
ec_file:mkdir_path(DirName),
- [{path, DirName} | Config].
+
+ {ok, AppInfo} = rebar_app_info:new(test_app, "0.0.1", DirName),
+ AppInfo1 = rebar_app_info:source(AppInfo, ?config(resource, Config)),
+
+ [{app, AppInfo1} | Config].
end_per_testcase(_, Config) ->
Config.
change_type_upgrade(Config) ->
- ?assert(rebar_fetch:needs_update(?config(path, Config),
- ?config(resource, Config),
+ ?assert(rebar_fetch:needs_update(?config(app, Config),
?config(state, Config))).