Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 2.48 KB

File metadata and controls

40 lines (26 loc) · 2.48 KB

Unreleased

  • Add query HTTP helper for testing HTTP QUERY (RFC 10008) routes, matching Kemal's query route DSL (kemal#769). Needs a Kemal version that ships QUERY support.

  • Send Host: localhost and Origin: http://localhost from websocket_request_headers, so WebSocket handshakes pass Kemal's same-origin check. Kemal 1.13.0 rejects an upgrade whose Origin is missing or does not match Host with 403 (CSWSH hardening), which turned every WebSocket spec into a failure — and, through connect_websocket, into a hang. origin: still overrides the default; delete Origin from the returned headers to test the missing-header path.

  • Close the response before reading the handshake in connect_websocket / inner_connect_websocket. Only HTTP::Server::Response#upgrade writes its 101 out on its own; a rejected handshake stayed in the response buffer, so the read blocked on an empty socket and the spec run hung forever instead of raising. A rejected handshake now raises with the status, and response holds the rejection.

  • Add timeout-minutes: 10 to the CI test matrix so a blocked spec fails in minutes rather than holding a runner for GitHub's 6 hour default.

1.3.0 (04-05-2026)

  • WebSocket testing support #25, thanks @sdogruyol 🙏
  • Set minimum Crystal version to 1.12.0 in shard.yml

1.2.0 (05-04-2026)

  • Add options HTTP helper for CORS and preflight-style tests.
  • Deduplicate Global.response assignment in request helpers.
  • Strengthen specs: HEAD body assertion, session cleanup after with_session.
  • CI: fail the build when Ameba reports issues (remove continue-on-error).

1.1.1 (23-02-2026)

  • Fix undefined method 'session?' for Global.class when using spec-kemal without the session extension. Thanks @sdogruyol 🙏

1.1.0 (02-02-2026)

  • Session testing support via with_session helper #23 Thanks @hugopl 🙏
  • Migrated from Travis CI to GitHub Actions
  • Improved documentation with comprehensive examples
  • Added inline documentation to source code

(1.0.0) - 25-04-2021

  • Support for all HTTP methods: GET, POST, PUT, PATCH, DELETE, HEAD
  • Custom headers support for requests
  • Request body support for POST/PUT/PATCH requests
  • Updated for Kemal 1.x compatibility
  • Improved handler chain building