| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 24 Dec 2025 01:23:45 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100215031906
location: https://web.archive.org/web/20100215031906/https://github.com/brynary/rack-test
server-timing: captures_list;dur=0.838157, exclusion.robots;dur=0.063445, exclusion.robots.policy;dur=0.047132, esindex;dur=0.013876, cdx.remote;dur=11.656890, LoadShardBlock;dur=208.989067, PetaboxLoader3.resolve;dur=105.292304, PetaboxLoader3.datanode;dur=70.944370
x-app-server: wwwb-app206-dc6
x-ts: 302
x-tr: 268
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app206; path=/
x-location: All
x-as: 14061
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: Wed, 24 Dec 2025 01:23:46 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Mon, 15 Feb 2010 03:19:06 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "ef366fbe6ad8db70117d2a40018c7883"
x-archive-orig-x-runtime: 89ms
x-archive-orig-content-length: 26815
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 15 Feb 2010 03:19:06 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
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: TLA-20100215003814-01229-ia360915-c/TLA-20100215023752-00822-ia360906.us.archive.org.warc.gz
server-timing: captures_list;dur=0.476626, exclusion.robots;dur=0.020413, exclusion.robots.policy;dur=0.010424, esindex;dur=0.009922, cdx.remote;dur=4.726400, LoadShardBlock;dur=251.942804, PetaboxLoader3.datanode;dur=171.064413, PetaboxLoader3.resolve;dur=167.439174, load_resource;dur=235.042317
x-app-server: wwwb-app206-dc6
x-ts: 200
x-tr: 548
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-as: 14061
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 service is courtesy of Pledgie.
brynary / rack-test
- Source
- Commits
- Network (14)
- Issues (0)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Sending Request…
Enable Donations
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
Rack::Test is a layer on top of Rack's MockRequest similar to Merb's RequestHelper — Read more
| name | age | message | |
|---|---|---|---|
| |
.document | Mon Mar 02 19:45:51 -0800 2009 | Readme [brynary] |
| |
.gitignore | Sat Sep 19 11:48:10 -0700 2009 | Ignore VERSION file in git [brynary] |
| |
History.txt | Fri Nov 27 13:45:02 -0800 2009 | Prep for 0.5.3 release [brynary] |
| |
MIT-LICENSE.txt | Mon Mar 02 19:45:51 -0800 2009 | Readme [brynary] |
| |
README.rdoc | Sat Sep 19 14:07:05 -0700 2009 | Docs [brynary] |
| |
Rakefile | Mon Oct 26 22:11:03 -0700 2009 | Use a simple Thorfile for release (to Gemcutter... [brynary] |
| |
Thorfile | Mon Oct 26 22:11:03 -0700 2009 | Use a simple Thorfile for release (to Gemcutter... [brynary] |
| |
lib/ | Fri Nov 27 13:46:21 -0800 2009 | Bump VERSION constant to pre-release [brynary] |
| |
rack-test.gemspec | Fri Nov 27 13:46:59 -0800 2009 | Update gemspec as well [brynary] |
| |
spec/ | Fri Nov 27 13:29:33 -0800 2009 | Fix cookie matching for subdomains [sickill] |
README.rdoc
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.
