Fix: Pass path to ui builder function when creating mock app

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-10-26 15:00:37 +02:00
parent c301b4b0ab
commit ae7a633ab3

View file

@ -92,7 +92,7 @@ impl ImagApplication for ImagTag {
::std::process::exit(1); ::std::process::exit(1);
}) })
.into_iter(); .into_iter();
if let Some(name) = rt.cli().subcommand_name() { if let Some(name) = rt.cli().subcommand_name() {
match name { match name {
"list" => for id in ids { "list" => for id in ids {
@ -282,6 +282,7 @@ mod tests {
modulename mock; modulename mock;
version env!("CARGO_PKG_VERSION"); version env!("CARGO_PKG_VERSION");
with help "imag-tag mocking app"; with help "imag-tag mocking app";
with ui builder function crate::ui::build_ui;
} }
use self::mock::generate_test_runtime; use self::mock::generate_test_runtime;