CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 24 Aug 2025 20:03:16 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090320182820
location: https://web.archive.org/web/20090320182820/https://github.com/brynary/rack-test/tree
server-timing: captures_list;dur=0.661256, exclusion.robots;dur=0.021994, exclusion.robots.policy;dur=0.009634, esindex;dur=0.011683, cdx.remote;dur=113.548134, LoadShardBlock;dur=173.130129, PetaboxLoader3.datanode;dur=61.381714, PetaboxLoader3.resolve;dur=66.395285
x-app-server: wwwb-app211
x-ts: 302
x-tr: 328
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app211; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Sun, 24 Aug 2025 20:03:17 GMT
content-type: text/html; charset=utf-8
content-length: 113
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Fri, 20 Mar 2009 18:28:18 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20090320182820/https://github.com/brynary/rack-test/tree/master
x-archive-orig-x-runtime: 268ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 113
cache-control: max-age=1800
memento-datetime: Fri, 20 Mar 2009 18:28:20 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 20 Mar 2009 18:28:20 GMT", ; rel="memento"; datetime="Fri, 20 Mar 2009 18:28:20 GMT", ; rel="next memento"; datetime="Sat, 30 May 2009 19:01:48 GMT", ; rel="last memento"; datetime="Thu, 11 Feb 2010 22:46:16 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_8_20090320164716_crawl101-c/52_8_20090320182737_crawl101.arc.gz
server-timing: captures_list;dur=0.539443, exclusion.robots;dur=0.021024, exclusion.robots.policy;dur=0.008810, esindex;dur=0.010440, cdx.remote;dur=13.885468, LoadShardBlock;dur=242.960714, PetaboxLoader3.datanode;dur=180.692967, PetaboxLoader3.resolve;dur=733.749051, load_resource;dur=707.624599
x-app-server: wwwb-app211
x-ts: 301
x-tr: 999
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 24 Aug 2025 20:03:18 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Fri, 20 Mar 2009 18:28:19 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 503ms
x-archive-orig-etag: "a0ba55cca076aa7b42529ef85f541aab"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 20463
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 20 Mar 2009 18:28:20 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 11 Mar 2009 23:30:13 GMT", ; rel="prev memento"; datetime="Thu, 12 Mar 2009 06:17:20 GMT", ; rel="memento"; datetime="Fri, 20 Mar 2009 18:28:20 GMT", ; rel="next memento"; datetime="Thu, 16 Apr 2009 13:33:37 GMT", ; rel="last memento"; datetime="Tue, 31 Jan 2023 21:25:59 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_8_20090320164716_crawl101-c/52_8_20090320182737_crawl101.arc.gz
server-timing: captures_list;dur=0.536794, exclusion.robots;dur=0.019040, exclusion.robots.policy;dur=0.008309, esindex;dur=0.011573, cdx.remote;dur=17.358914, LoadShardBlock;dur=231.780209, PetaboxLoader3.datanode;dur=80.965133, PetaboxLoader3.resolve;dur=248.698805, load_resource;dur=111.218384
x-app-server: wwwb-app211
x-ts: 200
x-tr: 412
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
brynary's rack-test at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | Rack::Test is a layer on top of Rack's MockRequest similar to Merb's RequestHelper |
Clone URL: |
git://github.com/brynary/rack-test.git
Give this clone URL to anyone.
git clone git://github.com/brynary/rack-test.git
|

Bryan Helmkamp (author)
Wed Mar 04 18:51:34 -0800 2009
name | age | message | |
---|---|---|---|
![]() |
.document | Mon Mar 02 19:45:51 -0800 2009 | Readme [brynary] |
![]() |
.gitignore | Mon Mar 02 20:20:15 -0800 2009 | Adding rake task for rcov [brynary] |
![]() |
History.txt | Mon Mar 02 20:22:37 -0800 2009 | Added History [brynary] |
![]() |
MIT-LICENSE.txt | Mon Mar 02 19:45:51 -0800 2009 | Readme [brynary] |
![]() |
README.rdoc | Mon Mar 02 20:13:43 -0800 2009 | Update README to use Rack::Test::Methods [brynary] |
![]() |
Rakefile | Mon Mar 02 20:22:37 -0800 2009 | Added History [brynary] |
![]() |
lib/ | Wed Mar 04 18:51:34 -0800 2009 | RDoc tweak [brynary] |
![]() |
spec/ | Wed Mar 04 18:01:53 -0800 2009 | Support XHRs by setting the X-Requested-With he... [brynary] |
Rack::Test
Description
Rack::Test is a small, simple testing API for Rack apps. It can be used on its own or as a reusable starting point for Web frameworks and testing libraries to build on. Most of its initial functionality is an extraction of Merb 1.0’s request helpers feature.
Features
- Maintains a cookie jar across requests
- Easily follow redirects when desired
- Set request headers to be used by all subsequent requests
- Small footprint. Approximately 200 LOC
Example
require "rack/test" class HomepageTest < Test::Unit::TestCase include Rack::Test::Methods def app MyApp.new end def test_redirect_logged_in_users_to_dashboard authorize "bryan", "secret" get "/" follow_redirect! assert_equal "https://example.org/redirected", last_request.url assert last_response.ok? end end
Install
To install the latest release as a gem:
sudo gem install rack-test
Authors
- Maintained by Bryan Helmkamp
- Contributions from Simon Rozet and Pat Nakajima
- Much of the original code was extracted from Merb 1.0’s request helper
License
Copyright © 2008-2009 Bryan Helmkamp, Engine Yard Inc. See MIT-LICENSE.txt in this directory.
This feature is coming soon. Sit tight!