From 6df7caca0ac8c821e36451cd4a0e05f202adf072 Mon Sep 17 00:00:00 2001 From: Serdar Dogruyol Date: Sat, 5 Nov 2016 01:05:09 +0200 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b989d1a..1da1334 100644 --- a/README.md +++ b/README.md @@ -44,12 +44,14 @@ Kemal.run Now you can easily test your `Kemal` application in your `spec`s. +``` +KEMAL_ENV=test crystal spec +``` + ```crystal # spec/your-kemal-app-spec.cr describe "Your::Kemal::App" do - # Be sure to start your app in test mode - start # You can use get,post,put,patch,delete to call the corresponding route. it "renders /" do @@ -57,8 +59,6 @@ describe "Your::Kemal::App" do response.body.should eq "Hello World!" end - # Be sure to stop your app after the specs - stop end ```