CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 25 Jul 2025 12:35:36 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080724072437
location: https://web.archive.org/web/20080724072437/https://github.com/github/body_matcher/tree
server-timing: captures_list;dur=0.450056, exclusion.robots;dur=0.016022, exclusion.robots.policy;dur=0.007968, esindex;dur=0.010474, cdx.remote;dur=42.878428, LoadShardBlock;dur=524.991836, PetaboxLoader3.datanode;dur=144.872947, PetaboxLoader3.resolve;dur=294.037504
x-app-server: wwwb-app211
x-ts: 302
x-tr: 594
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: 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 200
server: nginx
date: Fri, 25 Jul 2025 12:35:37 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Thu, 24 Jul 2008 14:24:37 GMT
x-archive-orig-transfer-encoding: chunked
x-archive-orig-connection: close
x-archive-orig-set-cookie: _github_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7AA%253D%253D--4d8802a39cf2ae2680fcdf915bd7f8472555cf65; domain=.github.com; path=/
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 0.57201
x-archive-orig-etag: "75ee41f5f63e47137db48acf386cd771"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-x_commoncrawl_parsesegmentid: 3903
x-archive-orig-x_commoncrawl_originalurl: https://github.com/github/body_matcher/tree
x-archive-orig-x_commoncrawl_urlfp: 4580639415873880231
x-archive-orig-x_commoncrawl_hostfp: -8801896244620822287
x-archive-orig-x_commoncrawl_signature: 75ee41f5f63e47137db48acf386cd771
x-archive-orig-x_commoncrawl_crawlno: 1
x-archive-orig-x_commoncrawl_fetchtimestamp: 1216909477818
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
x-archive-orig-content-encoding: gzip
memento-datetime: Thu, 24 Jul 2008 07:24:37 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 24 Jul 2008 07:24:37 GMT", ; rel="memento"; datetime="Thu, 24 Jul 2008 07:24:37 GMT", ; rel="next memento"; datetime="Sun, 04 Jan 2009 00:45:10 GMT", ; rel="last memento"; datetime="Sun, 04 Jan 2009 00:45:10 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: 1217096314156_8-c/1217096513525_29.arc.gz
server-timing: captures_list;dur=0.738554, exclusion.robots;dur=0.025840, exclusion.robots.policy;dur=0.011362, esindex;dur=0.016147, cdx.remote;dur=57.487825, LoadShardBlock;dur=746.178580, PetaboxLoader3.datanode;dur=472.752463, PetaboxLoader3.resolve;dur=532.156710, load_resource;dur=355.268724
x-app-server: wwwb-app211
x-ts: 200
x-tr: 1225
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
github's body_matcher 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 (

Fork of defunkt/body_matcher | |
Description: | Simplify your view testing. Forget assert_select. |
Homepage: | https://ozmm.org/posts/some_ruby_code.html |
Clone URL: |
git://github.com/github/body_matcher.git
Give this clone URL to anyone.
git clone git://github.com/github/body_matcher.git
|
Search Repo: |
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Mon Apr 21 21:59:06 -0700 2008 | First commit [uhlenbrock] |
![]() |
LICENSE | Mon Apr 21 21:59:06 -0700 2008 | First commit [uhlenbrock] |
![]() |
README | Mon Apr 21 21:59:06 -0700 2008 | First commit [uhlenbrock] |
![]() |
Rakefile | Mon Apr 21 21:59:06 -0700 2008 | First commit [uhlenbrock] |
![]() |
lib/ | Mon Apr 21 21:59:06 -0700 2008 | First commit [uhlenbrock] |
README
== BodyMatcher BodyMatcher simplifies your view testing. Forget assert_select. Activate it by including it in your Test::Unit::TestCase class: class Test::Unit::TestCase include BodyMatcher self.use_transactional_fixtures = true self.use_instantiated_fixtures = false end Simple assertions: body['#web_results'].should.match /results from the web/i body['#categories_dropdown'].should.include "#{topic}[#{count}]" Access the attributes: body['#name_field'].attributes['value'].should.equal '(your name)' body['#name_field']['value'].should.equal '(your name)' You can also use @response.body['blah']. The nice part about this is that test failures will print out only the HTML you're trying to match. For use with test/spec/rails, which provides the `body' method. Also requires Hpricot. Enjoy. * Chris Wanstrath [ chris@ozmm.org ]
This feature is coming soon. Sit tight!