Update README.md

This commit is contained in:
Serdar Dogruyol 2016-04-09 17:58:56 +03:00
parent f64aa9099b
commit b4d7512ca5

View file

@ -28,7 +28,21 @@ require "spec-kemal"
require "../src/your-kemal-app" 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 ```crystal
# spec/your-kemal-app-spec.cr # spec/your-kemal-app-spec.cr