Update README.md
This commit is contained in:
parent
ce27b796c1
commit
56d6941412
1 changed files with 4 additions and 3 deletions
|
@ -50,9 +50,10 @@ Now you can easily test your `Kemal` application in your `spec`s.
|
|||
describe "Your::Kemal::App" do
|
||||
# Be sure to start your app in test mode
|
||||
start
|
||||
|
||||
it "renders #index" do
|
||||
response = HTTP::Client.get "http://localhost:3000/"
|
||||
|
||||
# You can use get,post,put,patch,delete to call the corresponding route.
|
||||
it "renders /" do
|
||||
response = get "/"
|
||||
response.body.should eq "Hello World!"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue