aboutsummaryrefslogtreecommitdiff
path: root/src/tests/status.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-08-24 18:04:20 -0700
committerDaniel Mueller <deso@posteo.net>2020-08-24 18:04:20 -0700
commit03d04439323f60bc2f4371585ae21404dbcb7eeb (patch)
tree7ff9ab2c8d73332f01ee2fbae74b37d35c978347 /src/tests/status.rs
parent2dbc3748f9eec4a4fc9163e979b1d9d8efb3e2a0 (diff)
downloadnitrocli-03d04439323f60bc2f4371585ae21404dbcb7eeb.tar.gz
nitrocli-03d04439323f60bc2f4371585ae21404dbcb7eeb.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/status.rs')
-rw-r--r--src/tests/status.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/status.rs b/src/tests/status.rs
index 0fd5b5b..d158103 100644
--- a/src/tests/status.rs
+++ b/src/tests/status.rs
@@ -39,7 +39,7 @@ $"#,
)
.unwrap();
- let out = Nitrocli::with_model(model).handle(&["status"])?;
+ let out = Nitrocli::new().model(model).handle(&["status"])?;
assert!(re.is_match(&out), out);
Ok(())
}
@@ -65,7 +65,7 @@ $"#,
)
.unwrap();
- let out = Nitrocli::with_model(model).handle(&["status"])?;
+ let out = Nitrocli::new().model(model).handle(&["status"])?;
assert!(re.is_match(&out), out);
Ok(())
}