More crate splitting.

This commit is contained in:
Jordan Petridis
2017-10-05 00:22:05 +03:00
parent bf9e544a2b
commit 77797ee027
7 changed files with 25 additions and 12 deletions
+37
View File
@@ -0,0 +1,37 @@
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();
}