Update Readme

This commit is contained in:
Sdogruyol 2016-04-10 17:35:14 +03:00
parent f3b6bdadf0
commit ce27b796c1

View file

@ -48,12 +48,16 @@ Now you can easily test your `Kemal` application in your `spec`s.
# spec/your-kemal-app-spec.cr # spec/your-kemal-app-spec.cr
describe "Your::Kemal::App" do describe "Your::Kemal::App" do
# Be sure to start your app in test mode
start
it "renders #index" do it "renders #index" do
response = HTTP::Client.get "http://localhost:3000/" response = HTTP::Client.get "http://localhost:3000/"
response.body.should eq "Hello World!" response.body.should eq "Hello World!"
end end
# Be sure to stop your app after the specs
stop
end end
``` ```