rack-test
A cheatsheet by @rstacruz|Refreshed 7 months ago.Refresh|View source on Github

Methods

Methods

get 'url'
post 'url', 'name' => 'john'
put
patch
delete
options
head
authorize 'user', 'pass'
env 'rack.session', csrf: 'token'
header 'Content-Type', 'text/html'

See rack/test.rb.

This cheat sheet can be found in the following categories: