37 lines
766 B
Rust
37 lines
766 B
Rust
extern crate assert_cli;
|
|
|
|
// Notes:
|
|
// The following tests will use your systems local hammond db.
|
|
// There are no test for failure, cause the behavior have not
|
|
// been defined/though yet.
|
|
|
|
#[test]
|
|
fn test_update() {
|
|
assert_cli::Assert::main_binary()
|
|
.with_args(&["--update"])
|
|
.unwrap();
|
|
}
|
|
|
|
#[test]
|
|
fn test_download() {
|
|
assert_cli::Assert::main_binary()
|
|
.with_args(&["--download"])
|
|
.unwrap();
|
|
}
|
|
|
|
#[test]
|
|
fn test_add() {
|
|
assert_cli::Assert::main_binary()
|
|
.with_args(&[
|
|
"--add",
|
|
"https://feeds.feedburner.com/InterceptedWithJeremyScahill",
|
|
])
|
|
.unwrap();
|
|
}
|
|
|
|
#[test]
|
|
fn test_latest() {
|
|
assert_cli::Assert::main_binary()
|
|
.with_args(&["--latest"])
|
|
.unwrap();
|
|
} |