rack-test
A cheatsheet by @rstacruz|Refreshed almost 3 years 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: