1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2025-10-16 07:28:25 +02:00
cheatsheets/rack-test.md
Rico Sta. Cruz 511de900ba
Formatting updates (#2133)
- Update some sheets which have very long sections
- Remove `layout: 2017/sheet` (everything has the same layout now)
- Remove outdated sheets
2024-04-03 18:30:24 +11:00

25 lines
340 B
Markdown

---
title: rack-test
category: Ruby libraries
---
### Methods
```ruby
get 'url'
post 'url', 'name' => 'john'
put
patch
delete
options
head
```
```ruby
authorize 'user', 'pass'
env 'rack.session', csrf: 'token'
header 'Content-Type', 'text/html'
```
See [rack/test.rb](https://github.com/brynary/rack-test/blob/master/lib/rack/test.rb).