summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2014-03-26 18:41:59 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2014-04-11 15:01:26 +0200
commite1eec02c809cda38c548642436c88c39250a505a (patch)
tree5578d85894bef07f1fed5bd0e8f023a78f490f8b /test
parent0c7fe5fc7b0296a8d18da66234f78fe67ca7f738 (diff)
file_utils: properly report errors (fix #95)
While at it, improve the error message printed by rebar_utils:sh/2.
Diffstat (limited to 'test')
-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"])))]}.