summaryrefslogtreecommitdiff
path: root/test/rebar_file_utils_tests.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/rebar_file_utils_tests.erl')
-rw-r--r--test/rebar_file_utils_tests.erl12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/rebar_file_utils_tests.erl b/test/rebar_file_utils_tests.erl
index 6b87986..fd9a141 100644
--- a/test/rebar_file_utils_tests.erl
+++ b/test/rebar_file_utils_tests.erl
@@ -215,6 +215,18 @@ cp_r_overwrite_dir_fail_test_() ->
[filename:join([?TMP_DIR,"source"])],
filename:join([?TMP_DIR,"dest"])))]}.
+mv_file_test_() ->
+ {"move a file to folder",
+ setup,
+ fun() ->
+ setup(),
+ rebar_file_utils:mv(filename:join([?TMP_DIR,"source","file1"]),
+ filename:join([?TMP_DIR,"dest"]))
+ end,
+ fun teardown/1,
+ [?_assert(filelib:is_file(filename:join([?TMP_DIR,"dest","file1"]))),
+ ?_assertNot(filelib:is_file(filename:join([?TMP_DIR,"source","file1"])))]}.
+
%% ====================================================================
%% Utilities
%% ====================================================================