From f86d02ecbb3a3d68d7076e6fb38aec83a3e529bf Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 5 Sep 2017 17:38:18 +0200 Subject: [PATCH] Adapt the cli-test for delete() In the process fix the binary name. --- bin/core/imag-store/src/delete.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/core/imag-store/src/delete.rs b/bin/core/imag-store/src/delete.rs index 4c63bfe2..72da3976 100644 --- a/bin/core/imag-store/src/delete.rs +++ b/bin/core/imag-store/src/delete.rs @@ -47,22 +47,22 @@ mod tests { use std::path::PathBuf; make_mock_app! { - app "imag-link"; + app "imag-store"; modulename mock; version "0.4.0"; - with help "imag-link mocking app"; + with help "imag-store mocking app"; } use self::mock::generate_test_runtime; use self::mock::reset_test_runtime; #[test] - fn test_create_simple() { + fn test_delete_simple() { let test_name = "test_create_simple"; - let rt = generate_test_runtime(vec!["create", "-p", "test_create_simple"]).unwrap(); + let rt = generate_test_runtime(vec!["create", "test_create_simple"]).unwrap(); create(&rt); - let rt = reset_test_runtime(vec!["delete", "--id", "test_create_simple"], rt).unwrap(); + let rt = reset_test_runtime(vec!["delete", "test_create_simple"], rt).unwrap(); delete(&rt);