CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 06 Aug 2025 17:57:38 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100107063442
location: https://web.archive.org/web/20100107063442/https://github.com/dchelimsky/rspec
server-timing: captures_list;dur=0.708219, exclusion.robots;dur=0.026150, exclusion.robots.policy;dur=0.011543, esindex;dur=0.014767, cdx.remote;dur=37.130108, LoadShardBlock;dur=437.216241, PetaboxLoader3.datanode;dur=71.744174, PetaboxLoader3.resolve;dur=296.563756
x-app-server: wwwb-app215
x-ts: 302
x-tr: 513
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app215; 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: Wed, 06 Aug 2025 17:57:39 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Thu, 07 Jan 2010 06:34:42 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "14c57e598a34e7d48f20e655aac90d0d"
x-archive-orig-x-runtime: 124ms
x-archive-orig-content-length: 38411
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: Thu, 07 Jan 2010 06:34:42 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 15 Apr 2008 20:32:10 GMT", ; rel="prev memento"; datetime="Sun, 03 Jan 2010 11:11:17 GMT", ; rel="memento"; datetime="Thu, 07 Jan 2010 06:34:42 GMT", ; rel="next memento"; datetime="Thu, 11 Feb 2010 18:29:50 GMT", ; rel="last memento"; datetime="Sat, 26 Jul 2025 13:35:55 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: 51_13_20100107024011_crawl102-c/51_13_20100107063356_crawl101.arc.gz
server-timing: captures_list;dur=0.693424, exclusion.robots;dur=0.026349, exclusion.robots.policy;dur=0.012241, esindex;dur=0.013120, cdx.remote;dur=5.880523, LoadShardBlock;dur=165.883785, PetaboxLoader3.datanode;dur=206.615429, load_resource;dur=149.849240, PetaboxLoader3.resolve;dur=47.650112
x-app-server: wwwb-app215
x-ts: 200
x-tr: 436
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
dchelimsky's rspec at master - GitHub
dchelimsky / rspec
- Source
- Commits
- Network (142)
- Downloads (37)
- Wiki (27)
- Graphs
-
Branch:
master
rspec /
README.rdoc
RSpec
- rspec.info
- rubyforge.org/projects/rspec
- github.com/dchelimsky/rspec/wikis
- rspec-users@rubyforge.org
- rspec-devel@rubyforge.org
DESCRIPTION:
RSpec is a Behaviour Driven Development framework for writing executable code examples.
FEATURES:
- Spec::Example provides a framework for organizing executable code examples
- Spec::Expectations adds #should and #should_not to every object
- Spec::Matchers provides Expression Matchers for use with #should and #should_not
- Spec::Mocks is a full featured mock object/stubbing library
SYNOPSIS:
describe Account do context "transfering money" do it "deposits transfer amount to the other account" do source = Account.new(50, :USD) target = mock('target account') target.should_receive(:deposit).with(Money.new(5, :USD)) source.transfer(5, :USD).to(target) end it "reduces its balance by the transfer amount" do source = Account.new(50, :USD) target = stub('target account') source.transfer(5, :USD).to(target) source.balance.should == Money.new(45, :USD) end end end $ spec spec/account_spec.rb --format nested Account transfering money deposits transfer amount to the other account reduces its balance by the transfer amount 2 examples, 0 failures
INSTALL:
[sudo] gem install rspec or clone, build, install - See https://wiki.github.com/dchelimsky/rspec
This feature is coming soon. Sit tight!