From ae7a633ab3c7fde2f745f2a532df6d511565ac1a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 26 Oct 2019 15:00:37 +0200 Subject: [PATCH] Fix: Pass path to ui builder function when creating mock app Signed-off-by: Matthias Beyer --- bin/core/imag-tag/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/core/imag-tag/src/lib.rs b/bin/core/imag-tag/src/lib.rs index 2453ef45..2e917884 100644 --- a/bin/core/imag-tag/src/lib.rs +++ b/bin/core/imag-tag/src/lib.rs @@ -92,7 +92,7 @@ impl ImagApplication for ImagTag { ::std::process::exit(1); }) .into_iter(); - + if let Some(name) = rt.cli().subcommand_name() { match name { "list" => for id in ids { @@ -282,6 +282,7 @@ mod tests { modulename mock; version env!("CARGO_PKG_VERSION"); with help "imag-tag mocking app"; + with ui builder function crate::ui::build_ui; } use self::mock::generate_test_runtime;