From b5504b27cd93d14ef92ed9b79f471f64dcf553c3 Mon Sep 17 00:00:00 2001 From: Matt Paul Date: Wed, 18 Nov 2020 17:50:40 +0000 Subject: [PATCH] Update readme --- examples/postgres/mockable-todos/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/postgres/mockable-todos/README.md b/examples/postgres/mockable-todos/README.md index d28ae8b0..6b44e174 100644 --- a/examples/postgres/mockable-todos/README.md +++ b/examples/postgres/mockable-todos/README.md @@ -1,4 +1,8 @@ -# TODOs Example +# Mockable TODOs Example + +## Description + +This example is based on the ideas in [this blog post](https://medium.com/better-programming/structuring-rust-project-for-testability-18207b5d0243). The value here is that the business logic can be unit tested independently from the database layer. Otherwise it is identical to the todos example. ## Setup @@ -22,7 +26,7 @@ ## Usage -Add a todo +Add a todo ``` cargo run -- add "todo description"