We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 661bfc8 commit 270b8caCopy full SHA for 270b8ca
1 file changed
cli/tests/integration_test.rs
@@ -45,6 +45,25 @@ mod tests {
45
Ok(())
46
}
47
48
+ #[tag("deep")]
49
+ #[test]
50
+ fn outputs_version() -> Result<()> {
51
+ let assertion = Command::cargo_bin("fakehub")?.arg("--version").assert();
52
+ let bytes = assertion.get_output().stdout.as_slice();
53
+ let output = str::from_utf8(bytes)?;
54
+ assert!(output.contains(env!("CARGO_PKG_VERSION")));
55
+ Ok(())
56
+ }
57
+
58
59
+ fn outputs_version_from_short() -> Result<()> {
60
+ let assertion = Command::cargo_bin("fakehub")?.arg("-v").assert();
61
62
63
64
65
66
67
#[tag("deep")]
68
#[test]
69
fn outputs_start_opts() -> Result<()> {
0 commit comments