summaryrefslogtreecommitdiff
path: root/test/rebar_file_utils_tests.erl
diff options
context:
space:
mode:
authorJared Morrow <jared@basho.com>2014-04-24 07:16:39 -0600
committerJared Morrow <jared@basho.com>2014-04-24 07:16:39 -0600
commit837df640872d6a5d5d75a7308126e2769d7babad (patch)
treeaeaae6bf6a3433678a4b50dfd7c0562a6689a34d /test/rebar_file_utils_tests.erl
parent8d0430e37c2355958a5fabc59bd56d96826b2ef9 (diff)
parente1eec02c809cda38c548642436c88c39250a505a (diff)
Merge pull request #252 from tuncer/file_utils-errors
file_utils: properly report errors (fix #95)
Diffstat (limited to 'test/rebar_file_utils_tests.erl')
-rw-r--r--test/rebar_file_utils_tests.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rebar_file_utils_tests.erl b/test/rebar_file_utils_tests.erl
index 26a6f9f..a191765 100644
--- a/test/rebar_file_utils_tests.erl
+++ b/test/rebar_file_utils_tests.erl
@@ -191,7 +191,7 @@ cp_r_overwrite_file_fail_test_() ->
filename:join([?TMP_DIR,"dest","file1"]),0)
end,
fun teardown/1,
- [?_assertError({badmatch,_},
+ [?_assertThrow(rebar_abort,
rebar_file_utils:cp_r(
[filename:join([?TMP_DIR,"source","file1"])],
filename:join([?TMP_DIR,"dest"])))]}.
@@ -210,7 +210,7 @@ cp_r_overwrite_dir_fail_test_() ->
filename:join([?TMP_DIR,"dest","source","file1"]),0)
end,
fun teardown/1,
- [?_assertError({badmatch,_},
+ [?_assertThrow(rebar_abort,
rebar_file_utils:cp_r(
[filename:join([?TMP_DIR,"source"])],
filename:join([?TMP_DIR,"dest"])))]}.