Update README.md

This commit is contained in:
Serdar Dogruyol 2016-04-09 17:58:56 +03:00
parent f64aa9099b
commit b4d7512ca5
1 changed files with 15 additions and 1 deletions

View File

@ -28,7 +28,21 @@ require "spec-kemal"
require "../src/your-kemal-app"
```
Now you can access your `Kemal` application in your `spec`s.
Your Kemal application
```crystal
# src/your-kemal-app.cr
require "kemal"
get "/" do
"Hello World!"
end
Kemal.run
```
Now you can easily test your `Kemal` application in your `spec`s.
```crystal
# spec/your-kemal-app-spec.cr