test/list.sh in boom-0.4.0 vs test/list.sh in boom-0.5.0
- old
+ new
@@ -25,6 +25,18 @@
it_deletes_a_list() {
$boom | grep "enemies"
yes | $boom delete enemies | grep "Deleted"
! $boom | grep "enemies"
-}
\ No newline at end of file
+}
+
+it_handles_delete_on_nonexistent_list() {
+ ! $boom | grep "enemies"
+ $boom delete "enemies" | grep "We couldn't find that list"
+}
+
+it_handles_empty_boomfile() {
+ cp /dev/null test/examples/empty.json
+ export BOOMFILE=test/examples/empty.json
+ $boom heynow | grep "Created a new list"
+ export BOOMFILE=test/examples/data.json
+}