From 03d04439323f60bc2f4371585ae21404dbcb7eeb Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Mon, 24 Aug 2020 18:04:20 -0700 Subject: Introduce builder-inspired way for configuring Nitrocli instance In the future we would like to provide more ways for tests to create a Nitrocli instance. In order to prevent explosion of with_XXX methods for each possible combination of arguments, this change allows for an easier configuration of an existing object with builder-pattern-inspired modifier methods. --- src/tests/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/list.rs') diff --git a/src/tests/list.rs b/src/tests/list.rs index 7ff88a7..4c28995 100644 --- a/src/tests/list.rs +++ b/src/tests/list.rs @@ -22,7 +22,7 @@ fn connected(model: nitrokey::Model) -> anyhow::Result<()> { ) .unwrap(); - let out = Nitrocli::with_model(model).handle(&["list"])?; + let out = Nitrocli::new().model(model).handle(&["list"])?; assert!(re.is_match(&out), out); Ok(()) } -- cgit v1.2.1