Don't assume there is an existing DB.

This commit is contained in:
Sergio Benitez 2017-05-26 17:12:57 -07:00
parent 614ec1359e
commit 83002d3203
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ fn test_insertion_deletion() {
// Ensure it's gone.
let final_tasks = Task::all(&conn);
assert_eq!(final_tasks.len(), init_tasks.len());
assert_ne!(final_tasks[0].description, "My first task");
if final_tasks.len() > 0 {
assert_ne!(final_tasks[0].description, "My first task");
}
})
}