summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-08-28 15:35:47 -0400
committerBen Morrison <ben@gbmor.dev>2019-08-28 15:35:47 -0400
commita2b98af08902ce1c59a7521d2e491c3cc5c330f4 (patch)
treeef704df370a6c32905d7fce1e3b3c290cc3ed4a6
parent251f72e29ee333196c31224f506649dbfc15cc41 (diff)
downloadclinte-a2b98af08902ce1c59a7521d2e491c3cc5c330f4.tar.gz
tests in makefile, cleaned db test
-rw-r--r--Makefile9
-rw-r--r--src/db.rs2
2 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8ff0588..36aad30 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,15 @@ install:
 	@echo
 	@echo ...Done!
 
+.PHONY: test
+test:
+	@echo
+	@echo Running tests...
+	@echo
+	cargo test
+	@echo
+	@echo ...Done!
+
 .PHONY: uninstall
 uninstall:
 	@echo
diff --git a/src/db.rs b/src/db.rs
index f892c10..07655c5 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -64,6 +64,6 @@ mod tests {
         let conn = Conn::init("/tmp/clinte-test.db");
         let mut stmt = conn.prepare("SELECT * FROM POSTS").unwrap();
 
-        stmt.query_map(rusqlite::NO_PARAMS, |row| Ok(()));
+        stmt.query_map(rusqlite::NO_PARAMS, |_| Ok(())).unwrap();
     }
 }