blob: fe0f14154dae9b0d0b00ecf346fa10c36e180601 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
mod fixtures;
use fixtures::*;
#[test]
/// Show help and exit.
fn help_shows() -> Result<(), Error> {
Command::cargo_bin("miniserve")?
.arg("-h")
.assert()
.success();
Ok(())
}
#[test]
/// Show version and exit.
fn version_shows() -> Result<(), Error> {
Command::cargo_bin("miniserve")?
.arg("-V")
.assert()
.success()
.stdout(format!("{} {}\n", crate_name!(), crate_version!()));
Ok(())
}
|