~gbmor/clinte

a2b98af08902ce1c59a7521d2e491c3cc5c330f4 — Ben Morrison 2 years ago 251f72e
tests in makefile, cleaned db test
2 files changed, 10 insertions(+), 1 deletions(-)

M Makefile
M src/db.rs
M Makefile => Makefile +9 -0
@@ 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

M src/db.rs => src/db.rs +1 -1
@@ 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();
    }
}