Commit graph

10 commits

Author SHA1 Message Date
Serdar Dogruyol
9e8a54e00b Bump version to 1.1.0 2026-02-02 16:34:07 +03:00
Serdar Dogruyol
89d0f224c5 Expand spec-kemal tests to cover all HTTP methods including GET, POST, PUT, PATCH, DELETE, and HEAD with various scenarios such as query parameters, custom headers, and response status codes. 2026-02-02 16:24:32 +03:00
Hugo Parente Lima
19e6b03e41
Add support to write tests with kemal-session. (#23)
By default spec-kemal still not depending on kemal-session, but if you
require "spec-kemal/session", "kemal-session" dependency must be added
to shard.yml.

*How to use*

```
require "spec-kemal/session"

it "handles sessions" do
  get "/session_var" do |env|
    env.session.string?(env.params.query["key"]) || "not found"
  end

  with_session do |session|
    session.string("hey ho!", "let's go! 🎸")
    get "/session_var?key=hey+ho!"
    response.body.should eq("let's go! 🎸")
  end
end
```
2025-09-13 14:11:58 +03:00
n7olkachev
b6a93d2fe0 update kemal version 2017-09-24 17:24:41 +03:00
Sdogruyol
555804d29a 0.4.0 2016-12-10 19:55:51 +03:00
Serdar Dogruyol
e232dde74a Don't spawn, build handlers instead 2016-10-26 16:53:36 +03:00
Amit Saha
f2659b06fd Fixes for Crystal 0.19 2016-09-06 13:21:24 +10:00
Serdar Dogruyol
8c0d4268b9 0.2.0 2016-04-18 16:51:50 +03:00
Sdogruyol
f3b6bdadf0 Add specs 2016-04-10 17:13:25 +03:00
Sdogruyol
189d577c64 First commit 2016-04-09 17:37:46 +03:00