Adapt cli-test for create()

In the process fix the binary name.
This commit is contained in:
Matthias Beyer 2017-09-05 17:38:02 +02:00
parent 7b1ffdfa4b
commit 861817a87f

View file

@ -175,17 +175,17 @@ mod tests {
use toml::Value; use toml::Value;
make_mock_app! { make_mock_app! {
app "imag-link"; app "imag-store";
modulename mock; modulename mock;
version "0.4.0"; 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::generate_test_runtime;
#[test] #[test]
fn test_create_simple() { fn test_create_simple() {
let test_name = "test_create_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); create(&rt);