diff options
author | Daniel Mueller <deso@posteo.net> | 2020-08-24 18:04:20 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-08-24 18:04:20 -0700 |
commit | 0cc4371d138d5e98cd22813f10689cb089eef378 (patch) | |
tree | 4b6ab589bc552d8b1990a66cf6e42ad74002f452 /src/tests/list.rs | |
parent | 24250081fe899b2f4ddfcf1fffc812e8c5e7b83e (diff) | |
download | nitrocli-0cc4371d138d5e98cd22813f10689cb089eef378.tar.gz nitrocli-0cc4371d138d5e98cd22813f10689cb089eef378.tar.bz2 |
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.
Diffstat (limited to 'src/tests/list.rs')
-rw-r--r-- | src/tests/list.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(()) } |