From b59016cbd7ec375028a7e940ca78e4a172876db7 Mon Sep 17 00:00:00 2001 From: Jeremy Neptune Date: Fri, 15 Jul 2016 15:29:47 -0400 Subject: [PATCH] cp: fixed failing tests due to git's weirdness with files Made variable names in test_cp.rs more descriptive --- tests/fixtures/cp/hello_dir/hello.txt | 0 tests/test_cp.rs | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 tests/fixtures/cp/hello_dir/hello.txt diff --git a/tests/fixtures/cp/hello_dir/hello.txt b/tests/fixtures/cp/hello_dir/hello.txt new file mode 100644 index 000000000..e69de29bb diff --git a/tests/test_cp.rs b/tests/test_cp.rs index 3832e3f56..e5b86d8a7 100644 --- a/tests/test_cp.rs +++ b/tests/test_cp.rs @@ -44,17 +44,17 @@ fn test_cp_with_dirs() { let at = &ts.fixtures; //using -t option - let result_to_dir_t = ts.util_cmd() + let result_to_dir = ts.util_cmd() .arg(TEST_HELLO_WORLD_SOURCE) .arg(TEST_COPY_TO_FOLDER) .run(); - assert!(result_to_dir_t.success); + assert!(result_to_dir.success); assert_eq!(at.read(TEST_COPY_TO_FOLDER_FILE), "Hello, World!\n"); - let result_from_dir_t = ts.util_cmd() + let result_from_dir = ts.util_cmd() .arg(TEST_COPY_FROM_FOLDER_FILE) .arg(TEST_HELLO_WORLD_DEST) .run(); - assert!(result_from_dir_t.success); + assert!(result_from_dir.success); assert_eq!(at.read(TEST_HELLO_WORLD_DEST), "Hello, World!\n"); } \ No newline at end of file