Add tests for CreateHabitCommand

This commit is contained in:
2016-03-31 07:20:20 -04:00
parent f24e300b40
commit 4dc8201dcb
2 changed files with 89 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ public class CreateHabitCommand extends Command
Habit habit = Habit.get(savedId);
if(habit == null) throw new RuntimeException("Habit not found");
habit.delete();
habit.cascadeDelete();
}
@Override